Skip to content

Commit 49dc4f5

Browse files
committed
adjust parse of sample name
Using `basename` instead of `awk` so the script can parse sample names that include "." characters.
1 parent 81ef5f8 commit 49dc4f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

StrainID/identify-Strain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ cd $INPUT
5555
for BAM in *.bam
5656
do
5757

58-
SAMPLE=$(echo $BAM | awk -F"." '{print $1}')
58+
SAMPLE=`basename $BAM`
5959
echo $SAMPLE
60-
60+
6161
if [[ $SEED -eq "" ]]; then
6262
python $LOCAL/strainScripts/detect_strain_BAM.py -b $BAM -g $GENOME -v $VCF -o $OUTPUT/$SAMPLE\_strain.tab
6363
else

0 commit comments

Comments
 (0)