library("prozor")
make_chain_id_uniprot(strrep("A", 148), "sp|P30443|1A01_HUMAN", 21)[1] "sp|P30443|21-148"
Make a UniProt-style ID for a protein chain
make_chain_id_uniprot(sequence, id, start)
sequence
|
The protein sequence, as one string; the chain ends at its last residue. |
id
|
The UniProt ID of the protein, e.g. “sp|P30443|1A01_HUMAN”.
|
start
|
Start position of the chain. |
The first two fields of id, followed by the range of the chain as UniProt writes it: start, - and the length of sequence (the end of the chain), e.g. “sp|P30443|21-148”.
Other FASTA databases: create_decoy_db(), create_fgcz_fasta_db(), load_contaminants(), make_chain_id(), make_fasta_summary(), read_fasta(), remove_signal_peptide(), reverse_seq(), write_fasta()