-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cnv_discordant_read_calls
has a contig
param but supports contigs
#674
Comments
Hi @leehart, FWIW I'd be inclined to leave this as "contig". We haven't been very consistent about plural versus singular parameter names in general, but we do have lots of functions which have a "region" parameter that supports either a single or multiple regions, so it seems OK to have a similar situation for "contig". Doesn't seem worth an breaking API change. |
Hi @alimanfoo, on reflection it seems a bit of a shame to keep shying away from making these kinds of improvements, as minor as they might be, out of fear of (or consideration for) some measure of inconvenience. No doubt, we should try to avoid this situation, where the interface would be more self-consistent and make more sense if we slightly changed the name of a parameter here or there, if we can. Personally, I'm in favour of making things better at the slight expense of making a major version incrementation. Otherwise we seem constantly trapped and held hostage by our past oversights or lack of foresight, stuck with inconsistencies and historical oddities. I suppose, on balance, the question is: who does this approach really help? I can't imagine how new users would appreciate us holding back on these improvements. I'm conscious that existing users would have to update their code whenever they upgrade to a new major version, only very slightly in this case (from There is also the related issue of #375, where we intend to replace |
Relatedly, we could also move towards consistently naming function parameters that support multiple regions as |
All other functions that have a
contig
param usebase_params.contig
.cnv_discordant_read_calls
is the only function that usesbase_params.contigs
.I suggest we rename the param to
contigs
and update internal usage accordingly, but this would mean a breaking change.This could be done while fixing #660
The text was updated successfully, but these errors were encountered: