AssotesteR genotype format
1
2
Entering edit mode
10.5 years ago
Quak ▴ 520

I found AssotesteR package quite interesting to use. However, the genotype file format it works with is different from common format.

as its described, its a numeric matrix or data frame with genotype data coded as 0, 1, 2. and Missing data is allowed.

  1. So, basically, I can write a python script to make a table out of a given VCF file. I was curious if someone has already used this package or made such thing.
  2. Is there any other library/packages that you can introduce me? preferably with a use-friendly manual!
next-gen • 1.8k views
ADD COMMENT
0
Entering edit mode
9.8 years ago
zx8754 12k

We can use VariantAnnotation package to read vcf into R:

myVCF <- readVcf("/path/to/VCF/myvcf.vcf",genome="hg19")

Then we can get genotype using:

 myVCF@assays$data$GT  
ADD COMMENT

Login before adding your answer.

Traffic: 1606 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6