bioin.motif.score_motif

bioin.motif.score_motif(motifs)[source]

Compute the total different occurrences of nucleotides that consensus have with motifs.

Parameters:motifs (list) – list of strings, a set of k-mers motifs.
Returns:Integer, number of different nucleotides that consensus have with motifs.

Examples

Takes a list of strings motifs as input, compute score_motifs by first ocnstructing consensus_motifs(motifs) and then summing the number of symbols in the j-th column of motifs that do not match the symbol in the position j of the consensus string.

>>> motifs = ['AACGTA', 'CCCGTT', 'CACCTT', 'GGATTA', 'TTCCGG']
>>> score = score_motif(motifs)
>>> score
    14