Make a FASTA using UniProt accessions
make_fasta.RdGiven 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
Arguments
- accessions
character vector, the UniProt accessions to use- file
character, filepath to save the fasta to e.g."crap.fasta"- is_crap
logical, Is the output going to be a cRAP database? IfTRUEcRAP001, cRAP002, etc. is appended to the sequence headers in the FASTA file. Default isFALSE- overwrite
logical, if the FASTA file already exists should it be overwritten? Default isFALSE- verbose
logical, should the function send messages to the console? Default isTRUE