View source: R/get.pattern.variants.R
get.pattern.variants | R Documentation |
Given a vector of strains names and a set of varaints, return the variants for which the given strains have one allele and the remaining strains have the other allele.
get.pattern.variants(variants, strain.subset = NULL)
variants |
Matrix of data.frame of variants with four header columns containing annotation and snps in the remaining columns. |
strain.subset |
character vector of strain names that comprise one subset. |
Use this function to obtain a subset of SNPs for which one set of strains contain one allele and the rest contain the other allele. This might come up in the course of QTL mapping where several strains have a high allele and others have a low allele.
Data.frame of variants that match the requested pattern.
Daniel Gatti
get.variants
## Not run:
vcf = readVcf("vcf_file.tar.gz", param)
snp.subset = get.pattern.variants(vcf,
strain.subset = c("A/J", "NOD/ShiLtJ", "NZO/HlLtJ", "AKR/J"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.