src.domains.motif_hyphen_space module#

class MotifHyphenSpace(dct, alphabet=None, motiflength=None, units='bits', _callingfrommake=False)[source]#

Bases: MotifSpace

Domain of Motif Hyphens, like motif breakage rate constants, ligations projected onto motif space.

static make(alphabet, motiflength, units: Quantity = None)[source]#

Creates a MultiDomain object from a dictionary of names and domains

Parameters:

inp (MultiDomain or dict{name: DomainTuple}) – The already built MultiDomain or a dictionary of DomainTuples

Return type:

A MultiDomain with the input Domains as domains

property motiflength#
property alphabet#
property number_of_letters#
property units#
make_hyphen_dct(alphabet: list, motiflength: int) dict[source]#

Creates a motif hyphen dictionary. Parameters: ———– alphabet : list motiflength : int,

Returns:#

motif_hyphen_dct : dict