liftover | R Documentation |
Transfer genomic coordinates from one genome build to another.
liftover(
dat,
query_genome,
target_genome,
query_chrom_col = "CHR",
query_start_col = "POS",
query_end_col = query_start_col,
pos_prefix = "POS",
as_granges = FALSE,
style = "NCBI",
verbose = TRUE
)
dat |
data.table of GWAS/QTL summary statistics. |
query_genome |
name of the reference genome used for the GWAS (e.g. "GRCh37" or "GRCh38"). Argument is case-insensitive. |
target_genome |
name of the reference genome to convert to
("GRCh37" or "GRCh38"). This will only occur if the |
query_chrom_col |
Name of the chromosome column in
|
query_start_col |
Name of the starting genomic position
column in |
query_end_col |
Name of the ending genomic position
column in |
pos_prefix |
After the |
as_granges |
Return results as GRanges
instead of a data.table (default: |
style |
Style to return GRanges object in
(e.g. "NCBI" = 4; "UCSC" = "chr4";) (default: |
verbose |
Print messages. |
Lifted summary stats in data.table
or GRanges format.
Other liftover functions:
get_chain_file()
dat <- echodata::BST1
#### hg19 ==> hg38 ####
dat_lifted <- echotabix::liftover(
dat = dat,
query_genome = "hg19",
target_genome = "hg38"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.