Skip to content

Commit

Permalink
Merge pull request #73 from RoanKanninga/master
Browse files Browse the repository at this point in the history
fixing coveragecalculations
  • Loading branch information
RoanKanninga authored Oct 3, 2016
2 parents 57fbe0a + d8d658b commit e9f0b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/CoverageCalculations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ then

echo -e "Index\tChr\tChr Position Start\tDescription\tMin Counts\tCDS\tContig" > ${sampleNameID}.${perBase}.coveragePerBase.txt

awk -v OFS='\t' '{print NR,$1,$2,$5,$7,"CDS","1"}' ${sampleNameID}.${perBase}.combined_bedfile_and_samtoolsoutput.txt >> ${sampleNameID}.${perBase}.coveragePerBase.txt
awk -v OFS='\t' '{print NR,$1,$2,$4,$6,"CDS","1"}' ${sampleNameID}.${perBase}.combined_bedfile_and_samtoolsoutput.txt >> ${sampleNameID}.${perBase}.coveragePerBase.txt

#remove phiX
grep -v "NC_001422.1" ${sampleNameID}.${perBase}.coveragePerBase.txt > ${sampleNameID}.${perBase}.coveragePerBase.txt.tmp
Expand Down

0 comments on commit e9f0b62

Please sign in to comment.