Function lightmotif_py::create
source · pub fn create<'py>(sequences: &'py PyAny) -> PyResult<Motif>
Expand description
Create a new motif from an iterable of sequences.
All sequences must have the same length, and must contain only valid DNA symbols (A, T, G, C, or N as a wildcard).
Example: >>> sequences = [“TATAAT”, “TATAAA”, “TATATT”, “TATAAT”] >>> motif = lightmotif.create(sequences)
Returns:
~lightmotif.Motif
: The motif corresponding to the given sequences.