s3_1kg {ldblock} | R Documentation |
Create a URL referencing 1000 genomes content in AWS S3.
s3_1kg(chrnum, tag = "20130502", wrap = function(x) TabixFile(x), tmpl = NULL, dropchr = TRUE) stack1kg(chrs=as.character(1:22), index=FALSE)
chrnum |
a character string denoting a chromosome, such as '22' |
chrs |
a vector of chromosome names for extraction from 1000 genomes VCF collection |
index |
logical telling whether VcfStack should attempt to create the local index; for 1000 genomes, the tbi are in the cloud and will be used by readVcf so FALSE is appropriate |
tag |
a character string identifying the version, ignored if |
wrap |
The URL is returned after evaluating |
tmpl |
alternate template for full URL, useful if versions prior to 2010 are of interest |
dropchr |
if TRUE |
stack1kg produces a VcfStack instance with references to VCF for 1000 genomes autosomal chrs. S3-resident VCF files with version "v5a.20130502" are used.
by default, a TabixFile
instance
s3_1kg("22") ## Not run: require(VariantAnnotation) scanVcfHeader(s3_1kg("22")) ## End(Not run)