region_counts: add counts of variants to gff data object

View source: R/region_counts.R

region_countsR Documentation

add counts of variants to gff data object

Description

add counts of variants to gff data object

Usage

region_counts(regions, vcf)

Arguments

regions

data.table object with columns chr, start, stop

vcf

data.table object of variant data (data.table with CHROM, POS, REF, and ALT columns)

Value

a vector of variant counts for each row of input gff


greymonroe/polymorphology documentation built on Aug. 6, 2023, 1:33 a.m.