-
Notifications
You must be signed in to change notification settings - Fork 2
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
Chromosome X #10
Comments
It should work for X-chromosome, but it will assume diploid representation of genotype likelihood, and may not accept haploid genotype information. Also, the sex map should be provided. Please provide specific examples of the failure mode if you would like to report a bug. |
Thank you for the prompt reply. I confirmed that segmentation fault occurred because in my (PLINK-generated) BCF file, male non-PAR X genotypes were encoded by a single allele (as is the standard: "Haploid calls, e.g. on Y, male non-pseudoautosomal X, or mitochondria, should be indicated by having only one allele value."). After removing the male samples, RUTH ran without problems. I'm attaching a set of test files that recreate the problem.
After replacing the single alleles with two identical alleles and saving the file as
So, for RUTH to work, I should be replacing single alleles with two identical alleles for the male samples? Finally, how does RUTH handle the PAR and the non-PAR? Does it perform the test using all samples for the PAR and females only for the non-PAR? |
@hyunminkang, could you please provide an update on this. |
Did you provide --sex-map? I think you need to do so. Otherwise, it will consider all samples as females. Also, you need to provide genotype likelihood (PL) as diploids. I think it may work well with --field GT as it is not very well for chrX. If you insist using GT, you can use it at your own risk, but it would require diploid representation, making each genotypes as homozygotes. Yes, It will use ploidy information for non-PAR only. |
I provided
while this doesn't:
The error doesn't matter anymore, as I'm supposed to provide male genotypes as diploids anyway (I don't have the likelihoods, so I have to use the genotypes). Using only females for the non-PAR is not the same as using ploidy information, though. To find out what you mean by "using ploidy information", I looked at the code of |
Hi,
Can RUTH handle chromosome X? There isn't a mention of it in the manuscript, but the program accepts parameters for sex chromosomes. When I try to load a BCF file containing X-chromosome SNPs, however, I get a segmentation fault. It works fine if I remove those SNPs.
I compiled RUTH on macOS Ventura using htslib 1.18 installed with conda.
The text was updated successfully, but these errors were encountered: