Skip to main content

Make a UniProt-style ID for a protein chain

Description

Make a UniProt-style ID for a protein chain

Usage

make_chain_id_uniprot(sequence, id, start)

Arguments

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.

Value

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”.

See Also

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()

Examples

library("prozor")

make_chain_id_uniprot(strrep("A", 148), "sp|P30443|1A01_HUMAN", 21)
[1] "sp|P30443|21-148"