make_fasta.Rd
Given a vector of UniProt accessions, this function will:
Download the sequences
Print the current UniProt release (you should put this in the FASTA file name)
(Optional) add cRAP numbers to the FASTA headers for each sequence
Save the sequences in a FASTA file
make_fasta(
accessions,
file,
is_crap = FALSE,
overwrite = FALSE,
verbose = TRUE
)
character vector
, the UniProt accessions to use
character
, filepath to save the fasta to e.g. "crap.fasta"
logical
, Is the output going to be a cRAP database? If TRUE
cRAP001, cRAP002, etc. is appended to the sequence headers in the FASTA file.
Default is FALSE
logical
, if the FASTA file already exists should it be
overwritten? Default is FALSE
logical
, should the function send messages to the console?
Default is TRUE
Returns a FASTA file saved to disk at the specified file path.
# specify some UniProt accessions
crap <- get_ccp_crap()
if (FALSE) {
make_fasta(crap, "2021-01_cRAP.fasta")
}