Mercurial > repos > mingchen0919 > aurora_skewer
view shell-script-template.sh @ 6:5b07e567864b draft
planemo upload commit ee93fa730d90ffc1a895a849bdcb6050ed5ad2c9-dirty
author | mingchen0919 |
---|---|
date | Wed, 25 Apr 2018 17:20:11 -0400 |
parents | 2c663ddb8488 |
children | c5c297020c36 |
line wrap: on
line source
# run SHELL_SCRIPT within tool outputs directory cd ${REPORT_FILES_PATH} #--------- index genome -------- # create genome directory for genome indexes mkdir -p ${X_d}/genomeDir cat >temp.sh <<EOF STAR \\ --runMode genomeGenerate \\ --genomeDir ${X_d}/genomeDir \\ --genomeFastaFiles $( echo ${X_A} | sed 's/,/ /g' ) \\ --sjdbGTFfile ${X_B} \\ --sjdbOverhang ${X_C} \\ > /dev/null 2>&1 EOF grep -v None temp.sh > index-genome.sh # run star sh index-genome.sh #---- mapping --------- cat >temp.sh <<EOF STAR \\ --genomeDir ${X_d}/genomeDir \\ --readFilesIn \\ ${X_F} \\ ${X_R} \\ > /dev/null 2>&1 EOF grep -v None temp.sh > mapping.sh # run mapping sh mapping.sh # remove temp.sh rm temp.sh #----- SAM to sorted BAM ------ echo "samtools sort -o Aligned.out.sorted.bam Aligned.out.sam" > sam2bam.sh sh sam2bam.sh #----- evaluate mapping ------- echo "samtools flagstat Aligned.out.sorted.bam > flagstat.txt" > flagstat.sh sh flagstat.sh