gen2vcf | R Documentation |
This function converts IMPUTE2 gen file posterior probabilities to dosage, then outputs to VCF file.
gen2vcf(
genFile,
sampleFile,
chrName,
outVCFFile,
outVCFHeader = "##fileformat=VCFv4.1",
subsetSNPs = NULL,
subsetSamples = NULL
)
genFile |
input gen file |
sampleFile |
if provided sampleID will be added as header, else X1..Xn as sampleID |
chrName |
chromosome name |
outVCFFile |
output file name for VCF |
outVCFHeader |
output VCF header lines |
subsetSNPs |
index of SNPs to subset - rows |
subsetSamples |
index of Samples to subset - coloumns |
outputs VCF file, nothing returned in the workspace
Tokhir Dadaev
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.