View source: R/intervals-import.R
| gintervals.import_vcf | R Documentation |
Reads a VCF/VCF.gz file and returns a misha 1D intervals data frame
with one row per record. VCF is 1-based; start is set to
POS - 1 and end is set to POS - 1 + nchar(REF),
yielding a 0-based half-open span covering the reference allele.
gintervals.import_vcf(file = NULL, info = TRUE)
file |
path to a VCF/VCF.gz file. |
info |
if |
Chromosome names are normalized through the active database's
CHROM_ALIAS mechanism.
Multi-allelic records are kept as a single row; the ALT column
contains the original comma-separated string.
A 1D intervals data frame with columns chrom, start, end, and id, ref, alt, qual, filter, optionally info.
gintervals.import_bed,
gintervals.import_gff.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.