src.domains.motif_space module#

make_hamming_dct(alphabet, motiflength, monomers_included=True)[source]#
class MotifSpace(dct, alphabet=None, motiflength=None, units='bits', _callingfrommake=False)[source]#

Bases: MultiDomain

__init__(dct, alphabet=None, motiflength=None, units='bits', _callingfrommake=False)[source]#
static make(alphabet, motiflength, units: Quantity = None, monomers_included=True)[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#