-
Notifications
You must be signed in to change notification settings - Fork 167
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
Hard coded additional GC content filter in fix.py module #738
Comments
Hi @tsivaarumugam, I took a look and I do not think it is possible to connect this hard-coded GC filter you mention, to
But I can probably submit a PR adding a new Hope this helps ! |
Hi Felix,
Thanks for the reply. Yes the "EXTREME_GC_FRACTION" parameter option sounds reasonable and good to me. could you please do the needful changes in the params.py to make the hardcoded values as tunable command line parameter switch.
Thank you for the help and your valuable time.
Thanks & best regards,
Siva T
…________________________________
From: tetedange13 ***@***.***>
Sent: Wednesday, June 8, 2022 6:54 PM
To: etal/cnvkit ***@***.***>
Cc: Siva Arumugam ***@***.***>; Mention ***@***.***>
Subject: Re: [etal/cnvkit] Hard coded additional GC content filter in fix.py module (Issue #738)
Hi @tsivaarumugam<https://github.com/tsivaarumugam>,
I took a look and I do not think it is possible to connect this hard-coded GC filter you mention, to --no-gc param
=> Simply because they do not actionnate the same thing :
* --no-gc param toggles whether or not "correction for GC biais" is made (fix_gc==False if fix --no-gc) :
https://github.com/etal/cnvkit/blob/e29ec7de7bdd03892820a7a712c284c46b580dda/cnvlib/fix.py#L86-L90
* Whereas mask_bad_bins() is always run, in order to filter bad bins (ie ones having extreme values of GC-content, as shown by your 2nd screenshot) :
https://github.com/etal/cnvkit/blob/e29ec7de7bdd03892820a7a712c284c46b580dda/cnvlib/fix.py#L72
But I can probably submit a PR adding a new EXTREME_GC_FRACTION param to params.py, as you suggested
=> And you will just have to set it to 1 to disable GC-masking of bad bins
Hope this helps !
Have a nice day.
Felix.
—
Reply to this email directly, view it on GitHub<#738 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWERYB56YNFREAQ73OGYUGLVODF5PANCNFSM5VEU4PTQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hello,
In cnvkit version 0.9.8 and above, there is a hard coded GC content filter at line number 125 in the "mask_bad_bins" definition in fix.py module commit.
I understand the reason behind the filter and referred the supporting article/publication as well, but this new condition is filters out approximately 10% of our regions of interest.
Is it possible to club this filtering condition with the existing --no-gc flag command line argument and add the hard coded values to params.py module along with preexisting hard code values, so that the filter can be toggled on or off by the user without modifying the code.
Attaching the screenshots for reference.
Kindly go through and let me know.
screenshot of code snippet cnvkits version 0.9.6
screenshot of code snippet cnvkits version 0.9.8
Thanks
The text was updated successfully, but these errors were encountered: