Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #428 from kopardev/activeDev
Browse files Browse the repository at this point in the history
added missing tail -n1 bam2bw rule
  • Loading branch information
kopardev committed Sep 3, 2019
2 parents 4173cce + cbc0fec commit 6ac7383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rules/initialqcrnaseq.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ bamCoverage -b $bam -o {output.fbw} --filterRNAstrand forward --binSize 20 --smo
bamCoverage -b $bam -o {output.rbw} --filterRNAstrand reverse --binSize 20 --smoothLength 40 -p 32
# reverse files if method is not dUTP/NSR/NNSR ... ie, R1 in the direction of RNA strand.
fp=`awk '{{if($NF > 0.75) print "0.0"; else if ($NF<0.25) print "1.0"; else print "0.5";}}' {input.strandinfo}`
fp=`tail -n1 {input.strandinfo}|awk '{{if($NF > 0.75) print "0.0"; else if ($NF<0.25) print "1.0"; else print "0.5";}}'`
if [ $fp -lt 0.25 ];then
mv {output.fbw} {output.fbw}.tmp
mv {output.rbw} {output.fbw}
Expand Down

0 comments on commit 6ac7383

Please sign in to comment.