getFASTA | R Documentation |
This function retrieves protein sequences in FASTA format directly from the UniProt database via UniProt protein IDs. This function also checks if the amino-acid composition of protein sequences is in the 20 default types.
getFASTA(uniprot.id, filename = "FASTA.RData", path = "FASTASeq")
uniprot.id |
A character vector of UniProt identifiers. |
filename |
A character string, indicating the output filename as an RData object to store the retrieved sequences. |
path |
A character string indicating the path to the project directory that contains the interaction data. If the directory is missing, it will be stored in the current directory. Default is FASTASeq. |
getFASTA
A list containing protein FASTA sequences.
Matineh Rahmatbakhsh, matinerb.94@gmail.com
# get fasta sequences for three proteins of SARS-Cov-2
local = tempdir()
uniprot.id <- c("P0DTC4", "P0DTC5", "P0DTC9")
fasta_df <- getFASTA(uniprot.id, filename = 'FASTA.RData', path = local)
head(fasta_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.