zilong-li / vcfppr Goto Github PK
View Code? Open in Web Editor NEWvcfpp.h + htslib + Rcpp = fast VCF/BCF https://doi.org/10.1093/bioinformatics/btae049
Home Page: https://zilong-li.github.io/vcfppR/
License: Other
vcfpp.h + htslib + Rcpp = fast VCF/BCF https://doi.org/10.1093/bioinformatics/btae049
Home Page: https://zilong-li.github.io/vcfppR/
License: Other
Hi Zilong-Li,
Thank you for your software. I found it from your reply here.
I am currently trying to use vcfcomp to test concordance between some imputed genotypes and their original genotypes using the following script:
library(vcfppR)
res <- vcfcomp(test = "x.vcf.gz", truth = "y.vcf.gz", region="z|z", af="af.tsv", stats = "r2")
str(res)
write.table(res, file = "concordance", sep = "\t", col.names = T, row.names = T, quote = FALSE)
I used vcftools --freq to output the allele frequency for af.tsv.
However, this returns a dataframe fulls of NAs:
str(res)
List of 2
$ samples: chr [1:25] "/fastdata/bop21kgl/RawData/LIMS26076p5/Clean_aligned/418-2054_221014_L003__all_mapped_rehead.bam" "/fastdata/bop21$
$ r2 : logi [1, 1:17] NA NA NA NA NA NA ...
..- attr(*, "dimnames")=List of 2
.. ..$ : NULL
.. ..$ : chr [1:17] "(0,1e-05]" "(1e-05,2e-05]" "(2e-05,5e-05]" "(5e-05,0.0001]" ...
write.table(res, file = "concordance", sep = "\t", col.names = T, row.names = T, quote = FALSE)proc.time()
user system elapsed
190.199 5.955 196.606
Do you have a suggestion of where this is going wrong?
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.