-
Notifications
You must be signed in to change notification settings - Fork 71
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
use chrX and chrY to match sex chromosomes #713
base: main
Are you sure you want to change the base?
Conversation
The ploidy estimation script uses string comparison to "X" and "Y" to identify sex chromsomes, but the ploidy matrix input to the script uses "chrX" and "chrY" for the sex chromsomes. This commit updates the script to correctly identify sex chrosomomes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks this looks okay. Could have left in X
and Y
in also, but we don't really support hg19 anyway.
In a few places in the pipeline we provide chrX and chrY as inputs for this reason (example). Should we do this more consistently? |
It's a better solution to have them as inputs but we only support hg38 anyway. Up to @CuriousTim if he wants to do that and re-test it. |
I can add an input to the script. Should I also update the WDLs? |
Yes please update the WDLs and include the allosome contig names as inputs. Have "chrX" and "chrY" as defaults. |
1477a28
to
e17ad8d
Compare
Update the ploidy estimation script and associated WDLs to accept a custom set of allosome contigs, with the default being chrX and chrY.
I think I'd prefer something like this where we explicitly pass X and Y as separate optional variables. |
Expose separate inputs to specify the allosomal contig names in PloidyEstimation with the defaults being "chrX" and "chrY".
The method to pass the names of the allosomes to PloidyEstimation was changed from passing a file to passing two strings, but some calling workflows were not updated to reflect the change. This commit fixes the inputs.
The ploidy estimation script uses string comparison to "X" and "Y" to identify sex chromsomes, but the ploidy matrix input to the script uses "chrX" and "chrY" for the sex chromsomes. This commit updates the script to correctly identify sex chrosomomes.