Closed klmartinez closed 5 years ago
What is the result of this line of code?
RVS:::convertMatrix(sampleX$genotypes@.Data, sampleX$fam)
This is what gets called internally and seems to be causing the error. If you can send data that reproduces this error I'll be able to debug it more fully.
Oh, I see. Here is a few of the lines:
$locus.760 NULL
$locus.761 Fam_7 FALSE
$locus.762 Fam_7 FALSE
$locus.763 Fam_27 FALSE
$locus.764 Fam_7 FALSE
$locus.765 Fam_7 FALSE
$locus.766 Fam_7 FALSE
$locus.767 Fam_7 FALSE
$locus.768 Fam_7 FALSE
$locus.769 Fam_7 FALSE
$locus.770 Fam_7 FALSE
$locus.771 Fam_7 Fam_27 FALSE FALSE
$locus.772 Fam_7 Fam_27 FALSE FALSE
$locus.773 Fam_7 FALSE
$locus.774 NULL
$locus.775 Fam_7 FALSE
$locus.776 Fam_7 Fam_27 FALSE FALSE
$locus.777 Fam_7 FALSE
Most of the loci are coming back FALSE with only a few coming back for TRUE and only for Fam_27.
Kiana Lee Martinez PhD Student, Genetics GIDP University of Arizona kianalee@email.arizona.edu kianalee.org
From: Tom Sherman Sent: Wednesday, March 20, 2019 7:27 AM To: sherman5/RVS Cc: klmartinez; Author Subject: Re: [sherman5/RVS] problems with multipleVariantPValue function (#3)
What is the result of this line of code? RVS:::convertMatrix(sampleX$genotypes@.Data, sampleX$fam) This is what gets called internally and seems to be causing the error. If you can send data that reproduces this error I'll be able to debug it more fully. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
$locus.760
NULL
This looks like it could cause an issue - I'll look into how a NULL element could get there in the first place. Do you have the values from the SnpMatrix for locus.760 ?
I have a value under allele.1 but NA under allele.2
subset(sampleX$map, snp.name == "locus.760") snp.name allele.1 allele.2 locus.760 locus.760 C
Kiana Lee Martinez PhD Student, Genetics GIDP University of Arizona kianalee@email.arizona.edu kianalee.org
From: Tom Sherman Sent: Wednesday, March 20, 2019 10:45 AM To: sherman5/RVS Cc: klmartinez; Author Subject: Re: [sherman5/RVS] problems with multipleVariantPValue function (#3)
$locus.760 NULL This looks like it could cause an issue - I'll look into how a NULL element could get there in the first place. Do you have to values from the SnpMatrix for locus.760 ? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Would it be possible to send the ped.file with just locus.1
through locus.6
? It looks like the input is unexpected in RVS, both for locus.4
and locus.5
- but SnpStats is reading it just fine. I think this is an error on our end.
Hi Tom,
I can either send you the .ped file with only locus.1 through locus.6 in a few days after I figure out how to subset the .ped file itself, or I can send you the originaly .ped file immediately? Do you have a preference?
Thanks so much, Kiana
Kiana Lee Martinez PhD Student, Genetics GIDP University of Arizona kianalee@email.arizona.edu kianalee.org
From: Tom Sherman Sent: Wednesday, March 20, 2019 11:53 AM To: sherman5/RVS Cc: klmartinez; Author Subject: Re: [sherman5/RVS] problems with multipleVariantPValue function (#3)
Would it be possible to send the ped.file with just locus.1 through locus.6? It looks like the input is unexpected in RVS, both for locus.4 and locus.5 - but SnpStats is reading it just fine. I think this is an error on our end. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
The original .ped file would be great. I only suggested sub-setting it because I wasn't sure if there were any restrictions on sharing the data.
Okay great. I’ve attached the .ped (sampleX.ped) file that is merged from two family .ped files. However, I just want to note that I manually change $fam information to accurately reflect our family pedigree structures. I’ve attached my working R script in case it would be helpful.
Kiana Lee Martinez PhD Student, Genetics GIDP University of Arizona kianalee@email.arizona.edu kianalee.org
From: Tom Sherman Sent: Thursday, March 21, 2019 2:06 PM To: sherman5/RVS Cc: klmartinez; Author Subject: Re: [sherman5/RVS] problems with multipleVariantPValue function (#3)
The original .ped file would be great. I only suggested sub-setting it because I wasn't sure if there were any restrictions on sharing the data. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Since you're replying to a github issue from an email, I don't think the attachment will work. You can either email me directly at tomsherman159@gmail.com or attach the files at https://github.com/sherman5/RVS/issues/3
I found the bug and fixed it in commit de5b308 . I'll update the Bioconductor version, but if you want the fix immediately, then install the package directly from github, i.e. BiocManager::install("sherman5/RVS")
.
Let me know if you're still experiencing any issues.
Thank you very much!
Kiana Lee Martinez PhD Student, Genetics GIDP University of Arizona kianalee@email.arizona.edu kianalee.org
From: Tom Sherman Sent: Monday, March 25, 2019 12:13 PM To: sherman5/RVS Cc: klmartinez; Author Subject: Re: [sherman5/RVS] problems with multipleVariantPValue function (#3)
I found the bug and fixed it in commit de5b308 . I'll update the Bioconductor version, but if you want the fix immediately, then install the package directly from github, i.e. BiocManager::install("sherman5/RVS"). — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
I’ve been trying to use RVS and ultimately the multifpleVariantPValue function to compute a p-value for each variant across two families. However, I’ve come across some issues. I’ve been able to merge vcf files and construct a .ped file that reflects the one provided in RVS-provided examples.
For example, my data looks like the following:
I have also successfully used the RVsharing function:
However, when I try to use the multipleVariantPValue, I keep getting the same error:
Are there any insights for what I might be doing wrong and how to fix this?