Protein Seq Record
A ProteinSeqRecord consists of a ProteinSeq and several optional annotations.
Main attributes:
id - Identifier such as a locus tag (string)
seq - The sequence itself (ProteinSeq) Additional attributes:
name - Sequence name, e.g. gene name (string)
description - Additional text (string)
annotations - A map of strings containing key-value pairs of annotations for different features
letterAnnotations - Per letter/symbol annotation. This holds an ImmutableList whose length matches that of the sequence. A typical use would be to hold a list of integers representing sequencing quality scores.
from Bio.Seq import ProteinSeq from Bio.Seq import ProteinSeqRecord val record_1 = ProteinSeqRecord(ProteinSeq("UX"), "1", "seq1", "the first sequence")
Properties
Functions
Returns on AminoAcid at the given position, if negative returns from the end of the sequence
Note Kotlin IntRange are inclusive end, while Python slices exclusive end Negative slices "-3..-1" start from the last base (i.e. would return the last three residues)
Returns a string summary of the ProteinSeqRecord. Uses the representational string version of the sequence.