Another question about the format of config files ...
# nostupidquestions
u
Another question about the format of config files for specifying args. Most of the config files use I've seen use trenary if (?) - is there a suggested way when I need more options. To specify, I have a ext.args parameter that depends on strandness If strandness is auto (or undefined), leave it blank If strandness is "forward", use "--libType fr-firststrand" If strandness is "reverse", use "--libType fr-secondstrand" So would it work like this
ext.args = [
meta.single_end                 ?   '-t single' : '',
if (meta.strandness == "forward") { "--libType fr-firstrstand" } else { "--libType fr-secondstrand"}
]
Or something like this
ext.args = [
meta.single_end                 ?   '-t single' : '',
meta.strandness == "forward" ? "fr-firststrand" : { meta.strandness == "reverse" ? "--libType fr-secondstrand" : '' }         ]
Or am I totally off base? I know this is more of a basic syntax question, so I've missed the obvious place to look, I'd appreciate a pointer, so I can review the basics again. Thank you!