Hm, ok. If you want to keep it the way it is then we need to consider changing the description slightly
--bam_discard_unmapped Discard an unmapped read file, depending on choice in --
Removing references to bam or fastq in the description makes it clearer you are not trying to actually define the file type in this flag.
That said, I still don't think this makes complete sense/is unnecessarily over complicated.
In principle I think it makes it simpler to just have a single: --bam_discard_unmapped_bam.
Use cases would be, assuming someone wants the unmapped reads:
does the user want unmapped reads in only bam format? Yes: use --bam_separate_unmapped
does the user want unmapped reads in both bam and fastq? Do above but with --bam_unmapped_to_fastq
does the user want unmapped reads in only fastq format? Do both 1) and 2) with --bam_unmapped_discard_bam
I think this would also work programatically. The current system in this commit I think has mixed messages with the one flag saying you do want to discard something but then an entire other flag that saying you also want to discard something, but additionally which one. The messages behind the flags are sort of overlapping.
Does this make sense? Or do you disagree?
Hm, ok. If you want to keep it the way it is then we need to consider changing the description slightly
Removing references to bam or fastq in the description makes it clearer you are not trying to actually define the file type in this flag.
That said, I still don't think this makes complete sense/is unnecessarily over complicated.
In principle I think it makes it simpler to just have a single: --bam_discard_unmapped_bam.
Use cases would be, assuming someone wants the unmapped reads:
I think this would also work programatically. The current system in this commit I think has mixed messages with the one flag saying you do want to discard something but then an entire other flag that saying you also want to discard something, but additionally which one. The messages behind the flags are sort of overlapping.
Does this make sense? Or do you disagree?