File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,11 +10,13 @@ usage()
1010 exit
1111}
1212
13- if [ " $# " -ne 8 ]; then
13+ if [ " $# " -ne 8 && " $# " -ne 10 ]; then
1414 usage
1515fi
1616
17- while getopts " :i:g:v:o:" IN; do
17+ SEED=" "
18+
19+ while getopts " :i:g:v:o:s:" IN; do
1820 case " ${IN} " in
1921 i)
2022 INPUT=${OPTARG}
@@ -28,6 +30,9 @@ while getopts ":i:g:v:o:" IN; do
2830 o)
2931 OUTPUT=${OPTARG}
3032 ;;
33+ s)
34+ SEED=${OPTARG}
35+ ;;
3136 * )
3237 usage
3338 ;;
@@ -43,6 +48,7 @@ echo "Input folder = ${INPUT}"
4348echo " Genome FASTA file = ${GENOME} "
4449echo " VCF folder = ${VCF} "
4550echo " Output folder = ${OUTPUT} "
51+ echo " Seed value = ${SEED} "
4652
4753LOCAL=$( pwd)
4854cd $INPUT
5157
5258 SAMPLE=$( echo $BAM | awk -F" ." ' {print $1}' )
5359 echo $SAMPLE
54- python $LOCAL /strainScripts/detect_strain_BAM.py -b $BAM -g $GENOME -v $VCF -o $OUTPUT /$SAMPLE \_ strain.tab
55-
60+
61+ if [[ $SEED -eq " " ]]; then
62+ python $LOCAL /strainScripts/detect_strain_BAM.py -b $BAM -g $GENOME -v $VCF -o $OUTPUT /$SAMPLE \_ strain.tab
63+ else
64+ python $LOCAL /strainScripts/detect_strain_BAM.py -b $BAM -g $GENOME -v $VCF -o $OUTPUT /$SAMPLE \_ strain.tab -s $SEED
65+ fi
5666done
You can’t perform that action at this time.
0 commit comments