mirror of
https://github.com/Lukas0025/POC1-SIMD-DNA.git
synced 2025-04-08 00:12:11 +01:00
Print label in ascii pritn
This commit is contained in:
parent
ee8ae8797c
commit
7dd7b3ed6e
src/SIMDDNA
@ -100,3 +100,13 @@ def showMolecule(molecule, spacing = ""):
|
|||||||
|
|
||||||
for line in reversed(Invlines):
|
for line in reversed(Invlines):
|
||||||
print(spacing.join(line))
|
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))
|
Loading…
x
Reference in New Issue
Block a user