rptashkin / facets2n Goto Github PK
View Code? Open in Web Editor NEWAlgorithm to implement Fraction and Allelic Copy number Estimate from Tumor/normal Sequencing using unmatched normal sample(s) for log ratio calculations
Algorithm to implement Fraction and Allelic Copy number Estimate from Tumor/normal Sequencing using unmatched normal sample(s) for log ratio calculations
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
unmatched-normal-BAMS "<some/path>/PoolNormal.bam"
Line 82 in 8b163e2
can first check for at least one unmatched normal before this block
Which tools can create PoolNormal.bam, samtools merge?
unmatched-normal-BAMS "<some/path>/PoolNormal.bam"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.