genoDoses2Vcf | R Documentation |
Convert SNP genotypes from "allele doses" into the VCF format.
genoDoses2Vcf(
X,
snp.coords,
alleles,
file.date = format(Sys.Date(), "%Y%m%d"),
si = NULL,
verbose = 1
)
X |
matrix of bi-allelic SNP genotypes encoded, for each SNP, in number of copies of its second allele, i.e. as allele doses in 0,1,2, with genotypes in rows and SNPs in columns; the "second" allele corresponds to the second column of |
snp.coords |
data.frame with SNP identifiers as row names, and two columns, "chr" and "pos" (or "coord"); columns as factors will be converted into characters |
alleles |
data.frame (or matrix) with SNPs in rows (names as row names) and alleles in columns (exactly 2 columns are required); the first column will be interpreted as 'ref' and the second column, which should correspond to the allele which number of copies is counted at each SNP in |
file.date |
date to indicate into the object |
si |
output from the "seqinfo" function from the GenomeInfoDb package |
verbose |
verbosity level (0/1) |
CollapsedVCF (see pkg VariantAnnotation)
Timothee Flutre
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.