From f767647290b294026b8ff7d143290abd8d9b7da0 Mon Sep 17 00:00:00 2001 From: julien lagarde Date: Thu, 23 Sep 2021 12:02:26 +0200 Subject: [PATCH] min read support is 1 (1 input file) or 2 (more than 1 input files) --- processReadMappings.smk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/processReadMappings.smk b/processReadMappings.smk index 59b26b6..3e0ee44 100644 --- a/processReadMappings.smk +++ b/processReadMappings.smk @@ -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