kernel/spectrum.py
def complement(x: str):
    """Taking into account that the complement of a k-mer is supposed to be counted as the k-mer itself
    projects upon the space of k-mers beginning either by 'A' or 'C'

    e.g: ATAGCC == TATCGG
    complement("ATAGCC")="ATAGCC"
    complement("TATCGG")="ATAGCC"
    
    """
    if x[0] in "AC":
        return x
    return x.translate(TRANSLATION)
Taking into account that the complement of a k-mer is supposed to be counted as the k-mer itself
    projects upon the space of k-mers beginning either by 'A' or 'C'

    e.g: ATAGCC == TATCGG
    complement("ATAGCC")="ATAGCC"
    complement("TATCGG")="ATAGCC"
    
    
Taking into account that the complement of a k-mer is supposed to be counted as the k-mer itself
projects upon the space of k-mers beginning either by 'A' or 'C'


Taking into account that the complement of a k - mer is supposed to be counted as the k - mer itself projects upon the space of k - mers beginning either by ' A ' or ' C '
def complement(x: str):
    if x[0] in "AC":
        return x
    return x.translate(TRANSLATION)
def complement ( x : str ) : if x [ 0 ] in "AC" : return x return x . translate ( TRANSLATION )
Taking into account that the complement of a k-mer is supposed to be counted as the k-mer itself
projects upon the space of k-mers beginning either by 'A' or 'C'
Taking into account that the complement of a k - mer is supposed to be counted as the k - mer itself projects upon the space of k - mers beginning either by ' A ' or ' C '
"""Taking into account that the complement of a k-mer is supposed to be counted as the k-mer itself
    projects upon the space of k-mers beginning either by 'A' or 'C'

    e.g: ATAGCC == TATCGG
    complement("ATAGCC")="ATAGCC"
    complement("TATCGG")="ATAGCC"
    
    """
x
str