Description Usage Arguments Value Examples
Batch download different types of proteome-wide annotation data from Uniprot using REST services
1 2 | getUniprotData(outDir, format, reviewed = TRUE, organism = 9606,
update = FALSE)
|
outDir |
Target download folder path |
format |
File format. Accepted formats are gff, fasta, txt |
reviewed |
Only download reviewed uniprot entries (default: TRUE) |
organism |
Organism code e.g. 9606 for human |
update |
Boolean (default: FALSE), whether to download updated annotations to the target folder |
Path to the downloaded file
1 2 3 4 5 6 7 8 9 10 11 12 | #download Tobacco Rattle Virus proteome (it has only 6 genes)
#https://www.uniprot.org/proteomes/UP000001669
up <- getUniprotData(outDir = getwd(), format = 'fasta',
reviewed = TRUE, organism = 652939)
up_fasta <- Biostrings::readAAStringSet(up)
## Not run:
#download gff annotation for human reviewed proteome
gffFile <- getUniprotData(outDir = getwd(), format = 'fasta',
reviewed = TRUE, organism = 9606)
gff <- rtracklayer::import.gff(gffFile)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.