diff --git a/variants/pindel.sh b/variants/pindel.sh index 81b53a5087155ad7203dacf3fd96ac8cd0679961..452d2585a0b8f7d80d2266a35f209c2764594432 100755 --- a/variants/pindel.sh +++ b/variants/pindel.sh @@ -50,7 +50,7 @@ genomefiledate=`find ${reffa} -maxdepth 0 -printf "%TY%Tm%Td\n"` module load samtools/1.6 pindel/0.2.5-intel snpeff/4.3q bedtools/2.26.0 touch ${pair_id}.pindel.config for i in *.bam; do - sname="${i%.bam}" + sname=`echo "$i" |cut -f 1 -d '.'` echo -e "${i}\t400\t${sname}" >> ${pair_id}.pindel.config done