Cutadapt set -m=1 to avoid empty reads
- Jul 14, 2021
-
-
Alex Kanitz authored
-
Alex Kanitz authored
-
CJHerrmann authored
-
- Jul 13, 2021
-
-
CJHerrmann authored
-
closes #161 (closed)
Cutadapt's default behavior is to keep all reads, even if they are empty after adapter removal. However, STAR will fail if encountering empty reads.
Solution:
Add -m=1
to all cutadapt rules, before the additional parameters from rule_config.yaml
are inserted. Like this, if no rule_config.yaml
is specified, -m=1
will be used, otherwise it will be overwritten by the value from rule_config
.
The following tests have been performed locally:
samples.tsv
and run zarp with and without rule_config
(This failed prior to adding -m=1
)Not tested:
-m
is also used when cutadapt is called from snakemake (and not directly from command line)