ProteinSeqRecord

class ProteinSeqRecord(val sequence: ProteinSeq, val id: String, val name: String? = null, val description: String? = null, val annotations: ImmutableMap<String, String> = ImmutableMap.of(), val letterAnnotations: ImmutableMap<String, Array<out Any>> = ImmutableMap.of()) : SeqRecord, ProteinSeq

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

Constructors

Link copied to clipboard
constructor(sequence: ProteinSeq, id: String, name: String? = null, description: String? = null, annotations: ImmutableMap<String, String> = ImmutableMap.of(), letterAnnotations: ImmutableMap<String, Array<out Any>> = ImmutableMap.of())

Properties

Link copied to clipboard
val annotations: ImmutableMap<String, String>
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
val letterAnnotations: ImmutableMap<String, Array<out Any>>
Link copied to clipboard
val name: String?
Link copied to clipboard

Functions

Link copied to clipboard
open override fun back_translate(): NucSeq
Link copied to clipboard
open operator override fun compareTo(other: Seq): Int
Link copied to clipboard
open operator override fun contains(element: ProteinSeq): Boolean
Link copied to clipboard
open override fun copyOfBytes(): ByteArray
Link copied to clipboard
open override fun count(query: AminoAcid): Int
open override fun count(query: ProteinSeq): Int
Link copied to clipboard
open override fun count_overlap(query: ProteinSeq): Int
Link copied to clipboard
open override fun find(query: ProteinSeq, start: Int, end: Int): Int
Link copied to clipboard
open operator override fun get(i: Int): AminoAcid

Returns on AminoAcid at the given position, if negative returns from the end of the sequence

open operator override fun get(x: IntRange): ProteinSeq

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)

open operator override fun get(i: Int, j: Int): ProteinSeq
Link copied to clipboard
open override fun indexOf(query: ProteinSeq, start: Int, end: Int): Int
Link copied to clipboard
open override fun join(vararg seqs: ProteinSeq): ProteinSeq
Link copied to clipboard
open override fun lastIndexOf(query: ProteinSeq, start: Int, end: Int): Int
Link copied to clipboard
open operator override fun plus(seq2: ProteinSeq): ProteinSeq
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun repr(): String

Returns (truncated) representation of the sequence for debugging

Link copied to clipboard
open override fun rfind(query: ProteinSeq, start: Int, end: Int): Int
Link copied to clipboard
open override fun seq(): String
Link copied to clipboard
open override fun size(): Int
Link copied to clipboard
open operator override fun times(n: Int): ProteinSeq
Link copied to clipboard
open override fun toString(): String

Returns a string summary of the ProteinSeqRecord. Uses the representational string version of the sequence.

Link copied to clipboard
open override fun ungap(): Seq

TODO - needs to be implemented