Hi! Thanks a lot in advance for your support. I am...
# configs
e
Hi! Thanks a lot in advance for your support. I am using the nf-core viralintegration pipeline (v.0.1.1) and have a question about how to configure the --remove-duplicates option. I want it to be set to '*false*', but by default, it is set to 'true' (see documentation). When using the nf-core editor and selecting the --remove-duplicates false option, I get the following configuration:
Copy code
{
  "input": "samplesheet.csv",
  "outdir": "results",
  "min_reads": 2,
  "max_hits": 100,
  "remove_duplicates": true
}
And when I select --remove-duplicates true I get the following:
Copy code
{
  "input": "samplesheet.csv",
  "outdir": "results",
  "min_reads": 2,
  "max_hits": 100
}
I’m a bit confused about this parameter. I expected that if the default value is set to 'true', selecting 'false' would result in something like "remove_duplicates": false, but this didn’t work. I’m probably misunderstanding something, but I just want to make sure I don’t remove duplicates, which is my intention. I would really appreciate it if you could guide me on this. Thank you!
j
Nextflow is clever and will always assume that you want defaults unless you change something. So in this case the nf-core editor knows this, so if you specify what is actually the default it will not record any input in the params file (because Nextflow knows to use it)
Does that help?
e
Hi! Thanks for your response. However, I’m still a bit confused. To clarify, I don’t want to remove duplicates, and I understand that the default for
remove_duplicates
is
true
. When I try setting
"remove_duplicates": false
, the pipeline doesn’t recognize the option, and it doesn’t work. What I don’t fully understand is that according to the nf-core editor, if I select
--remove-duplicates false
, it records it in the config file as
"remove_duplicates": true
, which doesn’t seem consistent to me (maybe I’m missing something). But I need to ensure that duplicates are not removed, so I would appreciate it if you could clarify exactly how to configure this option to prevent duplicates from being removed. Thanks again for your help!
j
Oh sorry, I misunderstood the question facepalm
You will need to ask in #C03AL5RFTCP most likely, that sounds like a bug
e
ah! ok, thank you for the advice. I will write to them 🙂