assign_color | R Documentation |
Assign color to each SNP according to LD.
assign_color(rsid, snp, ld)
rsid |
(character vector) A vector of rsIDs on which to assign color. |
snp |
(string) rsID for lead SNP. This SNP will be colored purple. Other SNPs will be assigned color based on their LD with the lead SNP. |
ld |
(data.frame) The output from 'retrieve_LD()'. |
# the data.frame merged comes from the example for `get_lead_snp()`. # the data.frame ld comes from the example for `retrieve_LD()`. color = assign_color(rsid = merged$rsid, snp = 'rs9349379', ld)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.