acc2fa converts protein accession numbers to a fasta format.
Source:R/CHANGED-pre-msa-tree.R
, R/pre-msa-tree.R
acc2fa.Rd
Resulting fasta file is written to the outpath.
acc2fa converts protein accession numbers to a fasta format. Resulting fasta file is written to the outpath.
Usage
acc2fa(accessions, outpath, plan = "sequential")
acc2fa(accessions, outpath, plan = "sequential")
Arguments
- accessions
Character vector containing protein accession numbers to generate fasta sequences for. Function may not work for vectors of length > 10,000
- outpath
str. Location where fasta file should be written to.
- plan
Examples
if (FALSE) { # \dontrun{
acc2fa(accessions = c("ACU53894.1", "APJ14606.1", "ABK37082.1"), outpath = "my_proteins.fasta")
Entrez:accessions <- rep("ANY95992.1", 201) |> acc2fa(outpath = "entrez.fa")
EBI:accessions <- c("P12345", "Q9UHC1", "O15530", "Q14624", "P0DTD1") |> acc2fa(outpath = "ebi.fa")
} # }
if (FALSE) { # \dontrun{
acc2fa(accessions = c("ACU53894.1", "APJ14606.1", "ABK37082.1"), outpath = "my_proteins.fasta")
Entrez:accessions <- rep("ANY95992.1", 201) |> acc2fa(outpath = "entrez.fa")
EBI:accessions <- c("P12345", "Q9UHC1", "O15530", "Q14624", "P0DTD1") |> acc2fa(outpath = "ebi.fa")
} # }