ncbi_byid

0th

Percentile

Retrieve gene sequences from NCBI by accession number.

Retrieve gene sequences from NCBI by accession number.

Usage
ncbi_byid(ids, format = "fasta", verbose = TRUE)
Arguments
ids
(character) GenBank ids to search for.
format
(character) Return type, e.g., "fasta"
verbose
(logical) If TRUE (default), informative messages printed.
Details

Removes predicted sequences so you don't have to remove them. Predicted sequences are those with accession numbers that have "XM_" or "XR_" prefixes. This function retrieves one sequences for each species, picking the longest available for the given gene.

Value

  • Data.frame of results.

See Also

ncbi_search, ncbi_getbyname

Aliases
  • ncbi_byid
Examples
# A single gene
ncbi_byid(ids="360040093", format="fasta")

# Many genes (with different accession numbers)
ncbi_byid(ids=c("360040093","347448433"), format="fasta")
Documentation reproduced from package traits, version 0.1.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.