Mercurial > repos > cpt > cpt_find_spanins
comparison findSpanin.py @ 8:bf32db94fe46 draft default tip
planemo upload commit cd3216893a76b4b9485c2615448b41dbf7133107
author | cpt |
---|---|
date | Fri, 20 Sep 2024 05:17:06 +0000 |
parents | 81bd9b752628 |
children |
comparison
equal
deleted
inserted
replaced
7:81bd9b752628 | 8:bf32db94fe46 |
---|---|
480 ) | 480 ) |
481 if each_posp[6] == "+": | 481 if each_posp[6] == "+": |
482 if each_posp[2] in pair_dict["pairs"]["pair_number"].keys(): | 482 if each_posp[2] in pair_dict["pairs"]["pair_number"].keys(): |
483 # print('ovl ; +') | 483 # print('ovl ; +') |
484 f.write( | 484 f.write( |
485 +str(pair_dict["pairs"]["pair_number"][each_posp[2]]) | 485 str(pair_dict["pairs"]["pair_number"][each_posp[2]]) |
486 + "\n" | 486 + "\n" |
487 ) | 487 ) |
488 elif each_posp[6] == "-": | 488 elif each_posp[6] == "-": |
489 if each_posp[1] in pair_dict["pairs"]["pair_number"].keys(): | 489 if each_posp[1] in pair_dict["pairs"]["pair_number"].keys(): |
490 f.write( | 490 f.write( |
491 +str(pair_dict["pairs"]["pair_number"][each_posp[1]]) | 491 str(pair_dict["pairs"]["pair_number"][each_posp[1]]) |
492 + "\n" | 492 + "\n" |
493 ) | 493 ) |
494 else: | 494 else: |
495 f.write("nothing found") | 495 f.write("nothing found") |
496 | 496 |
552 ) | 552 ) |
553 ) | 553 ) |
554 if each_posp[6] == "+": | 554 if each_posp[6] == "+": |
555 if each_posp[2] in pair_dict["pairs"]["pair_number"].keys(): | 555 if each_posp[2] in pair_dict["pairs"]["pair_number"].keys(): |
556 f.write( | 556 f.write( |
557 +str(pair_dict["pairs"]["pair_number"][each_posp[2]]) | 557 str(pair_dict["pairs"]["pair_number"][each_posp[2]]) |
558 + "\n" | 558 + "\n" |
559 ) | 559 ) |
560 elif each_posp[6] == "-": | 560 elif each_posp[6] == "-": |
561 if each_posp[1] in pair_dict["pairs"]["pair_number"].keys(): | 561 if each_posp[1] in pair_dict["pairs"]["pair_number"].keys(): |
562 f.write( | 562 f.write( |
563 +str(pair_dict["pairs"]["pair_number"][each_posp[1]]) | 563 str(pair_dict["pairs"]["pair_number"][each_posp[1]]) |
564 + "\n" | 564 + "\n" |
565 ) | 565 ) |
566 else: | 566 else: |
567 f.write("nothing found") | 567 f.write("nothing found") |
568 | 568 |