load_uniprot_annotations: Download the txt uniprot data for a given accession/species.

View source: R/annotation_uniprot.R

load_uniprot_annotationsR Documentation

Download the txt uniprot data for a given accession/species.

Description

Uniprot is an astonishing resource, but man is it a pain to use. Hopefully this function will help. It takes either a uniprot accession, taxonomy ID, or species name and does its best to find the appropriate uniprot data. This is therefore primarily used by load_uniprot_annotations().

Usage

load_uniprot_annotations(
  accession = NULL,
  species = "H37Rv",
  taxonomy = NULL,
  all = FALSE,
  first = FALSE
)

Arguments

accession

Which accession to grab?

species

Or perhaps species?

taxonomy

Query for a specific taxonomy ID rather than species/accession?

all

If there are more than 1 hit, grab them all?

first

Or perhaps just grab the first hit?

Value

A filename/accession tuple.

See Also

[xml2] [rvest]

Examples

 uniprot_sc_downloaded <- load_uniprot_annotations(species = "Saccharomyces cerevisiae S288c")
 uniprot_sc_downloaded$filename
 uniprot_sc_downloaded$species

elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.