ribolands/pathfinder.py
def costruct(seq, cut = None):
    """ Translate between 'input' and 'internal' RNAcofold sequences """
    delim = '&'
    if delim in seq:
        cut = seq.index(delim) + 1
        table = str.maketrans(dict.fromkeys('&'))
        seq = seq.translate(table)
    elif cut and cut != -1:
        seq = seq[:cut-1] + delim + seq[cut-1:]
        cut = None
    return seq, cut
 Translate between 'input' and 'internal' RNAcofold sequences 
Translate between 'input' and 'internal' RNAcofold sequences
Translate between ' input ' and ' internal ' RNAcofold sequences
def costruct(seq, cut = None):
    delim = '&'
    if delim in seq:
        cut = seq.index(delim) + 1
        table = str.maketrans(dict.fromkeys('&'))
        seq = seq.translate(table)
    elif cut and cut != -1:
        seq = seq[:cut-1] + delim + seq[cut-1:]
        cut = None
    return seq, cut
def costruct ( seq , cut = None ) : delim = '&' if delim in seq : cut = seq . index ( delim ) + 1 table = str . maketrans ( dict . fromkeys ( '&' ) ) seq = seq . translate ( table ) elif cut and cut != - 1 : seq = seq [ : cut - 1 ] + delim + seq [ cut - 1 : ] cut = None return seq , cut
Translate between 'input' and 'internal' RNAcofold sequences
Translate between ' input ' and ' internal ' RNAcofold sequences
""" Translate between 'input' and 'internal' RNAcofold sequences """
seq
cut