fetch_gene_from_genome | R Documentation |
Extract a list of gene sequences from a genbank file
fetch_gene_from_genome(gene, accession, rename = TRUE,
detect_dups = TRUE)
gene |
Characte vector; gene names to extract. |
accession |
String; GenBank accession number of (full or partial) genome containing the gene(s) of interest. |
rename |
Logical; should the sequence be renamed as "accession-gene"? |
detect_dups |
Logical; should duplicates be detected? If TRUE, a text warning will be returned in the case that this gene has duplicate copies in the genome instead of the sequence; if false, all copies will be returned, differentiated by appending numbers to the gene name. |
A list
## Not run:
# KY427346 is the GenBank accession no. for the Diplazium striatum plastome
# https://www.ncbi.nlm.nih.gov/nuccore/KY427346
genes_to_get <- c("rbcL", "matK", "psbA")
fetch_gene_from_genome(genes_to_get, "KY427346")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.