Hi Mark, There is a functio already for doing that sort of thing i.e. ajSeqGetFromUsa Give it a USA and say whether the sequence is a protein or not. It'll return a filled AjPSeq. HTH Alan