def PrintSequence( sequence, chain = None, format="plain", alignment_sequence = None ):        

    if alignment_sequence:
        PrintAlignedSequences( sequence, alignment_sequence, chain, format )
    else:
        if format == "plain":
            print sequence
        elif format == "fasta":
            print (chain, len(sequence), sequence) % ">%s %i\n%s"
dataset/ETHPy150Open CGATOxford/cgat/legacy/pdb2sequence.py/PrintSequence/swapped operands of `%`