oligo_like
Class and Methods for oligo-like objects¶
The OligoLike class is an abstract base class designed to represent oligo-like objects,
such as individual primers and probes or primer pairs. This class encapsulates common attributes and
provides a foundation for more specialized implementations.
In particular, the following methods/attributes need to be implemented:
span()-- the mapping of the oligo-like object to the genome.bases()-- the bases of the oligo-like object, orNoneif not available.to_bed12_row()-- the 12-field BED representation of this oligo-like object.
See the following concrete implementations:
Primer-- a class to store an individual oligoPrimerPair-- a class to store a primer pair
Attributes¶
MISSING_BASES_STRING
module-attribute
¶
Used in string representations of primer-like objects when their bases property return None
Classes¶
OligoLike
dataclass
¶
Bases:
An abstract base class for oligo-like objects, such as individual primers or primer pairs.
Attributes:
| Name | Type | Description |
|---|---|---|
|
|
an optional name to use for the primer |
The id field shall be the 'name' field if supplied, or a generated value based on the
location of the primer-like object.
Source code in prymer/api/oligo_like.py
Attributes¶
bases
abstractmethod
property
¶
Returns the base sequence of the oligo-like object.
id
property
¶
Returns the identifier for the oligo-like object. This shall be the name
if one exists, otherwise a generated value based on the location of the object.
location_string
property
¶
Returns a string representation of the location of the oligo-like object.
percent_gc_content
property
¶
The GC of the amplicon sequence in the range 0-100, or zero if there is no amplicon sequence.
Functions¶
to_bed12_row
abstractmethod
¶
Formats the oligo-like into 12 tab-separated fields matching the BED 12-column spec. See: https://genome.ucsc.edu/FAQ/FAQformat.html#format1