hetTgen | R Documentation |
hetTgen extracts the read depth and coverage values for each snp for all the individuals from a vcf file generated from readVCF (or GatK VariantsToTable: see details)
hetTgen(
vcf,
info.type = c("AD", "AD-tot", "GT", "GT-012", "GT-AB", "DP"),
verbose = TRUE,
parallel = FALSE
)
vcf |
an imported vcf file in a list using |
info.type |
character. |
verbose |
logical. whether to show the progress of the analysis |
parallel |
logical. whether to parallelize the process |
If you generate the depth values for allele by sample using GatK
VariantsToTable option, use only -F CHROM -F POS -GF AD flags to generate
the table. Or keep only the CHROM, POS, ID, ALT, and individual AD columns.
For info.type GT
option is provided to extract the genotypes of
individuals by snp.
Returns a data frame of allele depth, genotype of SNPs for all the individuals extracted from a VCF file
Piyal Karunarathne, Klaus Schliep
## Not run: vcf.file.path <- paste0(path.package("rCNV"), "/example.raw.vcf.gz")
vcf <- readVCF(vcf.file.path=vcf.file.path)
het.table<-hetTgen(vcf)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.