View source: R/mtReadVCF_mtc.R
mtReadVCF_mtc | R Documentation |
Extract allele, freq and coverage datasets from the VCF file containing results called by mitoCaller. The datasets are the input of mtAAF and mtSummary functions.
mtReadVCF_mtc(file)
file |
a string of path and name of VCF file to import |
A list contains the three matrices of allele, freq and coverage with dimensions of 16569 x N. Rows correspond to loci and columns correspond to subjects. It contains subject ID as the column names.
## Not run: ## Read mitoCaller VCF file mtVCF_mtc <- mtReadVCF_mtc(file="dir/example.vcf") allele <- mtVCF_mtc$allele freq <- mtVCF_mtc$freq coverage <- mtVCF_mtc$coverage ## compute AAF aaf=mtAAF(allele, freq) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.