ieutab_to_cravat | R Documentation |
format the variant location, content and identity information from MRC IEU API tables for OpenCRAVAT
ieutab_to_cravat(ieutab, chain = NULL, genome = NULL)
ieutab |
a data.frame-like entity with |
chain |
a liftOver chain structure as defined in rtracklayer |
genome |
character(1) label, if present, attached to output as a column |
If a liftOver chain is provided, some input records may be lost. We attempt to keep allele content information with each locus.
# Here we assume it is desired to give hg38 variant positions to cravat if (requireNamespace("ieugwasr")) { pw = try(ieugwasr::phewas("17:37000000-37020000")) if (!inherits(pw, "try-error")) { octab = ieutab_to_cravat(pw, chain=gwaslake::ch19to38, genome="hg38" ) print(head(octab)) } aa = try(ieugwasr::associations("rs6060535", id="ukb-b-10787")) if (!inherits(aa, "try-error")) { octab2 = ieutab_to_cravat(aa, chain=gwaslake::ch19to38, genome="hg38") head(octab2) } }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.