extract_info.Rd
Use this function to extract the INFO field values for a single INFO field in a give region based query.
extract_info(vcf, index, reg, tag)
vcf | the VCF/BCF file path |
---|---|
index | the CSI/TBI index file path |
reg | a region query of the form: chr:start-end |
tag | the field in the INFO field to extract. Only accepts one string value at this time. Only can extract numeric fields at the moment. |
a dataframe with the chrom, pos, and value of the given INFO field
# NOT RUN { extract_info(vcf, index, "1:10001-100500", "AC") # }