Skip to content

Commit

Permalink
min read support is 1 (1 input file) or 2 (more than 1 input files)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienlag committed Sep 23, 2021
1 parent e12f012 commit f767647
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions processReadMappings.smk
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,8 @@ uuid=$(uuidgen)
filesCount=$(cat {input.countFiles})
#min read support is floor of number of input files /2:
let minRS=$filesCount/3 || true
#min read support is 1 (1 input file) or 2 (more than 1 input files):
if [ $filesCount == 1 ]; then minRS=1; else minRS=2; fi;
echo "Min Read Support: $minRS"
cat {input.gff} | tmerge --minReadSupport $minRS --tmPrefix {wildcards.groupedSampleRepBasename}.NAM_ - |sort -T {TMPDIR} -k1,1 -k4,4n -k5,5n > {TMPDIR}/$uuid.gff
Expand Down

0 comments on commit f767647

Please sign in to comment.