Profile Covariance Models#
- class pyinfernal.cm.CM#
A data structure storing an Infernal Covariance Model.
- filter_hmm#
The HMM used for the initial filtering stages inside the Infernal pipeline.
- Type:
- __init__(alphabet, M, name)#
Create a new, empty CM from scratch.
- copy()#
Create a copy of this CM and return the copy.
- creation_time#
The creation time of the CM, if any.
Example
Get the creation time for any HMM:
>>> trna.creation_time datetime.datetime(2012, 4, 30, 8, 54, 53)
Set the creation time manually to a different date and time:
>>> ctime = datetime.datetime(2026, 1, 15, 13, 59, 10) >>> trna.creation_time = ctime >>> trna.creation_time datetime.datetime(2026, 1, 15, 13, 59, 10)
Danger
Internally, Infernal always uses
asctimeto generate a timestamp for the HMMs, so this property assumes that every creation time field can be parsed into adatetime.datetimeobject using the"%a %b %d %H:%M:%S %Y"format.- Type: