Comments (1)
My R code to parse the output:
library("data.table")
library("tidyverse")
library("reshape2")
message("Reading VCF...")
happy_vcf <- fread(happy_vcf_path, sep='\t', header = TRUE, skip = '#CHROM') %>%
.[,INFO:=NULL]
format_types <- unique(happy_vcf$FORMAT)
truth <- list()
query <- list()
for(i in format_types) {
message("Parsing ", i, "...")
index <- which(happy_vcf$FORMAT == i)
col_names <- str_split(i, ":")[[1]]
truth[[i]] <- colsplit(happy_vcf[index, TRUTH], ":", names=col_names) %>%
setDT %>% .[,index:=index]
query[[i]] <- colsplit(happy_vcf[index, QUERY], ":", names=col_names) %>%
setDT %>% .[,index:=index]
}
truth <- rbindlist(truth, fill = TRUE) %>% .[order(index), ]
query <- rbindlist(query, fill = TRUE) %>% .[order(index), ]
from hap.py.
Related Issues (20)
- Hap.py not working with singularity HOT 1
- TRUTH.TOTAL differs despite having used the same TRUTH SET HOT 2
- running into build error with CMake HOT 3
- WES TI TV ratio HOT 2
- Confused with the interpretation when having TRUTH.FN and QUERY.FP HOT 2
- pre.py -> vcfcheck fails due to call with invalid genotype (non-existent allele)
- Parsing results VCF gives different counts of TRUTH FN than summary HOT 1
- CMake Error at CMakeLists.txt:32 (message): Building external dependencies has failed
- Error running BCFTOOLS :Argument list too long
- Integrating vcfdist as a comparison engine into hap.py
- missing reference HOT 1
- Trying to print sequence when we mean contig name
- error code 1
- Docker Implementation: Several Error Messages Related to "preprocess" HOT 1
- ROC and PR curve HOT 2
- Docker fails to build for both bases
- Incorrect number of FORMAT/AD values on scmp-distance engine
- Link provide in email is broken HOT 1
- [E::bgzf_uncompress] inflate failed: invalid distance too far back HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hap.py.