Bioinformatics/base count: Difference between revisions
m
→procedural ( dictionary version)
Line 2,250:
def main ():
def DispCount (
Line 2,269 ⟶ 2,267:
other = All - BoI
D
print ( 'Sequence:\n\n')
Line 2,275 ⟶ 2,273:
print ( ''.join ( [ f'{k:4d} : {S [ k: k + 50 ]}\n' for k in range ( 0, len ( S ), 50 ) ] ) )
print ( f'{DispCount (
print ( '' if ( other == set () ) else f'Other\t{sum ( [ D [ k ] for k in sorted ( other ) ] ):4d}\n\n' )
Line 2,287 ⟶ 2,285:
pass
|