linkDB | R Documentation |
Parse an input sequence into an Accession-based HTML link
linkDB(
accession,
DB = "sra",
base_url = "https://www.ncbi.nlm.nih.gov",
label = "<acc>",
prefix_text = NULL,
suffix_text = NULL
)
accession |
character, SRA run_id accession to look-up |
DB |
character, GenBank database to prefix ["sra"] |
base_url |
character, URL ["https://www.ncbi.nlm.nih.gov/"] |
label |
character, Display string or accession var ["<acc>"] |
prefix_text |
character, prefix to add to label when using accession |
suffix_text |
character, suffix to add to label when using accession |
character, html link for click to search
# Standard SRA link database
db.link <- linkDB("ERR2756788")
db.link <- linkDB("SRR7287110", label = "Ginger The Cat")
# Link to BioSamples Database
db.link <- linkDB("SRR7287110", label = "Ginger The Cat")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.