Python_script_tools/helper.py
def CodonDifferences(s1, s2):
    """Calculate codon differences

    Input:
    s1 - a string of DNA, divisible by 3, in frame with intended reading frame
    s2 - similar to s1, must be same length
    """
    assert len(s1) == len(s2)
    return [s1[i:i+3] != s2[i:i+3] for i in range(0, len(s1),3)]
Calculate codon differences

    Input:
    s1 - a string of DNA, divisible by 3, in frame with intended reading frame
    s2 - similar to s1, must be same length
    
Calculate codon differences
Input:
s1 - a string of DNA, divisible by 3, in frame with intended reading frame
s2 - similar to s1, must be same length
Calculate codon differences Input : s1 - a string of DNA divisible by 3 in frame with intended reading frame s2 - similar to s1 must be same length
def CodonDifferences(s1, s2):
    assert len(s1) == len(s2)
    return [s1[i:i+3] != s2[i:i+3] for i in range(0, len(s1),3)]
def CodonDifferences ( s1 , s2 ) : assert len ( s1 ) == len ( s2 ) return [ s1 [ i : i + 3 ] != s2 [ i : i + 3 ] for i in range ( 0 , len ( s1 ) , 3 ) ]
Calculate codon differences
Input:
s1 - a string of DNA, divisible by 3, in frame with intended reading frame
s2 - similar to s1, must be same length
Calculate codon differences Input : s1 - a string of DNA divisible by 3 in frame with intended reading frame s2 - similar to s1 must be same length
"""Calculate codon differences

    Input:
    s1 - a string of DNA, divisible by 3, in frame with intended reading frame
    s2 - similar to s1, must be same length
    """
s1
s2