chrpos_to_rsid.Rd
Chromosome & position data to variant RSID
chrpos_to_rsid(
dt,
chr_col,
pos_col,
ea_col = NULL,
nea_col = NULL,
flip = "allow",
alt_rsids = FALSE,
build = "b37_dbsnp156",
dbsnp_dir = genepi.utils::which_dbsnp_directory(),
parallel_cores = parallel::detectCores(),
verbose = TRUE
)
a data.frame like object, or file path, with at least columns (chrom
a string column name; chromosome position
a string column name; base position
a string column name; effect allele
a string column name; non effect allele
a string, options: "report", "allow", "no_flip"
a logical, whether to return additional alternate RSIDs
a string, options: "b37_dbsnp156", "b38_dbsnp156" (corresponds to the appropriate data directory)
a string file path to the dbSNP .fst file directory - see setup documentation
an integer, the number of cores/workers to set up the future::multisession
with
a logical, runtime reporting
a data.table with an RSID column (or a list: 1-data.table; 2-list of alternate rsids IDs)