Description Usage Arguments Value Examples
extract_array
: the function to extract data
from a VCF
file, by taking VCFArraySeed
as
input. This function is required by the DelayedArray
for
the seed contract.
VCFArray
: The function to convert data entries
inside VCF file into the VCFArray
instance.
1 2 3 4 |
x |
the VCFArraySeed object |
index |
in |
file |
takes values for charater string (specifying the VCF
file path), |
vindex |
in |
name |
the data entry from VCF file to be read into
VCFArraySeed / VCFArray. For |
VCFArray
class object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | fl <- system.file("extdata", "chr22.vcf.gz",
package="VariantAnnotation")
va <- VCFArray(fl, name = "GT")
va
vcf <- VariantAnnotation::VcfFile(fl)
va1 <- VCFArray(vcf, name = "GT")
va1
all.equal(va, va1)
## RangedVcfStack class
library(GenomicFiles)
rgstackFile <- system.file("extdata", "rgstack.rds", package = "VCFArray")
rgstack <- readRDS(rgstackFile)
va2 <- VCFArray(rgstack, name = "SB")
va2
## coercion
as(va[1:10, ], "array")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.