Description Usage Arguments Value Examples
This method accesses the NCI's API and queries a position (CHR & POS) and variant (REF & ALT) to obtain a rsid. If it fails, it will attempt to swap REF and ALT before giving up.
1 | get_rsid_from_position(chrom, pos, ref, alt, assembly = valid_references)
|
chrom |
The name of the contig for the SNP |
pos |
The (1-based) position of the SNP |
ref |
The reference allele (only SNPs are supported) |
alt |
The alternate allele (only SNPs are supported) |
assembly |
Which reference genome to use ("hg18", "hg19", or "hg38") |
an rsid identifier of the position provided
1 2 3 | get_rsid_from_position("9", 125711603, "C", "A") # "rs10760259"
get_rsid_from_position("9", 136155000, "T", "C") # "rs635634"
get_rsid_from_position("9", 136155000, "C", "T") # "rs635634"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.