Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
#!/bin/bash -l
#PBS -N sra_fetch
#PBS -l walltime=8:00:00
#PBS -l mem=8gb
#PBS -l ncpus=4
#PBS -m bae
###PBS -M email@host
#PBS -j oe

#Usage: qsub fetch_SraAccList.pbs

cd $PBS_O_WORKDIR

for i in `cat SraAccList.txt`;
do 
  echo $i
  prefetch $i
  fastq-dump --split-files $i  
done

Submit the job to the HPC cluster:

Code Block
./fetch_SraAccList.sh SraAccList.txt