def info(argument):

    sequence = Seq(argument)
    seq_len = sequence.len()
    bases_count = list(sequence.count().values())
    bases_percent = list(sequence.base_percentage().values())
    bases = list(sequence.count().keys())
    msg = f"Sequence: {sequence}\n" \
          f"Total length: {seq_len}\n"
    for i in range(len(bases)):
        msg += f"{bases[i]}: {bases_count[i]} ({bases_percent[i]}%)\n"

    return msg
def info(cs, argument):
    print_colored("INFO", "yellow")
    sequence = Seq(argument)
    seq_len = sequence.len()
    bases_count = list(sequence.count().values())
    bases_percent = list(sequence.base_percentage().values())
    bases = list(sequence.count().keys())
    msg = f"Sequence: {sequence}\n" \
          f"Total length: {seq_len}\n"
    for i in range(len(bases)):
        msg += f"{bases[i]}: {bases_count[i]} ({bases_percent[i]}%)\n"

    cs.send(str(msg).encode())
    return msg