Forum: PBS script for STAR alignment for RNA-seq data - MCRI
Share a PBS script for STAR (version 2.7.3a) alignment for RNA-seq dataset (pair-end) running in MCRI PBS system. STAR manual can be downloaded here.
#!/bin/sh
set -eu
cd ~/hpc/project/RnaseqBacterial/extdata/rnaseq
mkdir temp
mkdir bam
for i in $(ls *.fastq | rev | cut -c 14- | rev | uniq)
do
echo \#PBS -N $i > $i.job
echo \#PBS -l nodes=1:ppn=6 >> $i.job
echo \#PBS -M Guo.shicheng\@marshfieldresearch.org >> $i.job
echo \#PBS -m abe >> $i.job
echo \#PBS -o $(pwd)/temp/ >>$i.job
echo \#PBS -e $(pwd)/temp/ >>$i.job
echo cd $(pwd) >> $i.job
OPTS_P1="--outReadsUnmapped Fastx --outSAMtype BAM SortedByCoordinate --limitBAMsortRAM 100000000000 --genomeLoad LoadAndKeep --seedSearchStartLmax 8 --outFilterMultimapNmax 100 --outFilterMismatchNoverLmax 0.5"
genomeDir="/gpfs/home/guosa/hpc/db/hg19/STAR"
echo STAR --runThreadN 6 --outBAMsortingThreadN 6 --genomeDir $genomeDir --outFileNamePrefix ~/hpc/project/RnaseqBacterial/extdata/rnaseq/bam/$i --readFilesIn $i\_R1_001.fastq $i\_R2_001.fastq >> $i.job
qsub $i.job
done
• 248 views
•
link
0 answers
No answers yet.
Log in to answer this question.
This is not a tutorial without at least explaining what the script does, why it's useful, and so on.
Your code also contains highly situation specific information, including your own username, which does not help people generalise a solution from it.
Shicheng Guo , like we have mentioned before, this site is not your personal lab notebook. Please edit the post so it is useful for the larger community, or it will be deleted.
Hello Shicheng Guo!
We believe that this post does not fit the main topic of this site.
Please see my comment.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!