-
Notifications
You must be signed in to change notification settings - Fork 4
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
error readSnpMatrix: Overlap of loci between the two Loess dataframes #25
Comments
Hi @iS4i4S, are there Female samples in your reference set of 47 normals? Are the reference normals and your sample CNSL047T sequenced with the same assay? If yes to both of those questions, perhaps you can share your reference loess file and your CNSL047T snp pileup counts file to debug further. |
Thanks for the quick reply,
THe link for the referenceFIle standard_normals_cv3heme.snp_pileup.gz THe loess is a little big so I put the pileup for the normals Thanks in advance |
Hi @iS4i4S , I was not able to reproduce your error: made loess file from your provided reference pileup
imputed patient sex from matched normal: Female There were 50 or more warnings (use warnings() to see the first 50)
A few points:
Are your input data of Normal and Tumor BAMs that generated CNSL047T.snp_pileup.gz from the same individual? If so, can you verify that these sample are not contaminated?
|
THanks for the input. I tried reinstalling and reopening R to see if maybe there were some environment inconsistencies but it keeps throwing the error when reading the pileup.gz file. Could you print your SessionInfo please Thanks |
Hi, R version 3.6.1 (2019-07-05) Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
Thanks a lot, will try it out. |
Hello,
I generated the normal snp and then the loess.txt using 47 normal bams successfully using:
/usr/local/lib/R/site-library/facets2n/extcode/snp-pileup-wrapper.R --output-prefix /media/user/Seagate_Exome67_133/LIGUE/Exomes_67_133/FACETS/Tonly/standard_normals_cv3heme \ --vcf-file /media/user/Seagate_Exome67_133/LIGUE/Reference_files_WESpipeline/00-common_all.vcf.gz \ --unmatched-normal-BAMS "/media/user/Seagate_Exome67_133/LIGUE/Exomes_67_133/Alignments/Final_bams/*N_cleaned_bqsr.bam"
And then in R I created the loess object and try to load a snpMatrix (from a Tumor-normalUnmatched sample):
facets2n::MakeLoessObject(pileup = PreProcSnpPileup(filename = "/media/user/Seagate_Exome67_133/LIGUE/Exomes_67_133/FACETS/Tonly/standard_normals_cv3heme.snp_pileup.gz", is.Reference = TRUE,gbuild="hg38"), write.loess = TRUE, outfilepath = "/media/user/Seagate_Exome67_133/LIGUE/Exomes_67_133/FACETS/Tonly/standard_normals_cv3heme.loess.txt", is.Reference = TRUE,gbuild = "hg38") readu <- facets2n::readSnpMatrix(filename ="CNSL047T_CNSL005N.snp_pileup.gz", MandUnormal = TRUE, ReferencePileupFile = "/media/user/Seagate_Exome67_133/LIGUE/Exomes_67_133/FACETS/Tonly/standard_normals_cv3heme.snp_pileup.gz", ReferenceLoessFile = "/media/user/Seagate_Exome67_133/LIGUE/Exomes_67_133/FACETS/Tonly/standard_normals_cv3heme.loess.txt", useMatchedX = FALSE, refX=TRUE,gbuild = "hg38")
I got the following error:
imputed patient sex from matched normal: Female
Best normal for autosomes: NA
Best normal for ChrX: NA
Error in
[.data.frame
(combined.pileup, , best_normX) :undefined columns selected
In addition: There were 50 or more warnings (use warnings() to see the first 50)
I tried lowering the "MinOverlap" to 0.75 but the error persists with this and other samples
Any suggestions or ideas to make it work?
Thanks in advance
The text was updated successfully, but these errors were encountered: