diff --git a/src/SIMDDNA/ascii.py b/src/SIMDDNA/ascii.py index 6d7dcfb..e0379b5 100644 --- a/src/SIMDDNA/ascii.py +++ b/src/SIMDDNA/ascii.py @@ -99,4 +99,14 @@ def showMolecule(molecule, spacing = ""): Invlines[2] += " " for line in reversed(Invlines): - print(spacing.join(line)) \ No newline at end of file + print(spacing.join(line)) + + # print bases in bottom + label = [] + for i in range(len(molecule)): + if (molecule.getBase(0, i) != nothing): + label.append(molecule.getBase(0, i) + spacing) + else: + label.append(" " + spacing) + + print("".join(label)) \ No newline at end of file diff --git a/src/SIMDDNA/register.py b/src/SIMDDNA/register.py index ce3fb92..5ca094f 100644 --- a/src/SIMDDNA/register.py +++ b/src/SIMDDNA/register.py @@ -146,35 +146,35 @@ myreg.inscription([ molecule.parse("{D*E*A*F*}") ]) -myreg.asciiShow("") +myreg.asciiShow(" ") myreg.inscription([ molecule.parse("{D*E*A*B*C*G*}") ]) -myreg.asciiShow("") +myreg.asciiShow(" ") myreg.inscription([ molecule.parse("{DEABCG}") ]) -myreg.asciiShow("") +myreg.asciiShow(" ") myreg.inscription([ molecule.parse("{A*B*C*}"), molecule.parse("{D*E*}") ]) -myreg.asciiShow("") +myreg.asciiShow(" ") myreg.inscription([ molecule.parse("{DEAF}") ]) -myreg.asciiShow("") +myreg.asciiShow(" ") myreg.inscription([ molecule.parse("{B*C*D*E*}") ]) -myreg.asciiShow("") \ No newline at end of file +myreg.asciiShow(" ") \ No newline at end of file