make id for chain compatible with uniprot
makeIDUnip(sequence, id, sp)
sequence | - aa sequence as string |
---|---|
id | uniprot id id: sp|P30443|1A01_HUMAN |
sp | start position of chain numeric |
string consisting of sp,"-", length of sequnce
seq <- "MAVMAPRTLLLLLSGALALTQTWAGSHSMRYFFTSVSRPGR\ GEPRFIAVGYVDDTQFVRFDSDAASQKMEPRAPWIEQEGPEYWDQETRN\ MKAHSQTDRANLGTLRGYYNQSEDGSHTIQIMYGCDVGPDGRFLRGYRQ\ DAYDGKDYIALNEDLRSWTAADMAAQITKRKWEAVHAAEQRRVYLEGRC\ VDGLRRYLENGKETLQRTDPPKTHMTHHPISDHEATLRCWALGFYPAEI\ TLTWQRDGEDQTQDTELVETRPAGDGTFQKWAAVVVPSGEEQRYTCHVQ\ HEGLPKPLTLRWELSSQPTIPIVGIIAGLVLLGAVITGAVVAAVMWRRK\ SSDRKGGSYTQAASSDSAQGSDVSLTACKV" nam <-"sp|P30443|1A01_HUMAN" sp <- 24 makeIDUnip(seq, nam, sp) #> [1] "sp|P30443|24-372"