【发布时间】:2021-03-16 20:18:46
【问题描述】:
你好,我在这里运行这个 bash 脚本,命令“bwa index ..”会生成几个文件,这个命令没有用于指定输出路径的“-o”标志。我想将这些文件重定向到一个新文件夹中。我在网上搜索过,我遇到的所有答案都是将生成的文件重定向到特定的文件名,但是通常如何将输出文件重定向到新文件夹中?非常感谢!
#!/bin/bash
### qsub file.name to run from anywhere
### first step of BMW, making indexed fasta file
#PBS -N bwa_index
#PBS -S /bin/bash
#PBS -l walltime=24:00:00
#PBS -l nodes=1:ppn=8
#PBS -l mem=64gb
#PBS -o /gpfs/data/mcnerney-lab/liuweihan/chip_seq/becker_lab/bwa_index.out
#PBS -e /gpfs/data/mcnerney-lab/liuweihan/chip_seq/becker_lab/bwa_index.err
date
module load gcc/6.2.0
module load bwa/0.7.17
bwa index -p mm10_bwa_idx -a bwtsw /gpfs/data/mcnerney-lab/liuweihan/chip_seq/becker_lab/mm10.fa
date
echo END
【问题讨论】:
-
cd 目录 && bwa