Skip to content

Commit

Permalink
remove premature exit in locus coverage script
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Feb 28, 2021
1 parent 818d701 commit c8bbf55
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions workflow/scripts/locus_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ for dir in $DIRS;
do
bam=`ls $dir/*.bam`;
sample=`basename $bam | sed 's/\.bam//g'`;
#cov=`samtools view -b -q 30 $bam | bedtools coverage -a ${REF_BED} -b stdin | cut -f 8 | tr '\n' '\t'`;
cov=`samtools view -b -q 30 $bam | bedtools coverage -a ${REF_BED} -b stdin | cut -f 8 | tr '\n' '\t'`;
dep=`samtools view -b -q 30 $bam | bedtools coverage -a ${REF_BED} -b stdin -mean | cut -f 5 | tr '\n' '\t'`;
#echo -e "$sample\t$cov";
echo -e "$sample\t${cov}\t${dep}";
exit
done

0 comments on commit c8bbf55

Please sign in to comment.