Showing
1 changed file
with
37 additions
and
37 deletions
... | @@ -2601,45 +2601,45 @@ if __name__ == "__main__": | ... | @@ -2601,45 +2601,45 @@ if __name__ == "__main__": |
2601 | # compute an update compared to what is in the table "chain" (comparison on structure_id + chain_name + rfam_acc). | 2601 | # compute an update compared to what is in the table "chain" (comparison on structure_id + chain_name + rfam_acc). |
2602 | # If --all was passed, all the structures are kept. | 2602 | # If --all was passed, all the structures are kept. |
2603 | # Fills pp.update with Chain() objects. | 2603 | # Fills pp.update with Chain() objects. |
2604 | - # pp.list_available_mappings() | 2604 | + pp.list_available_mappings() |
2605 | 2605 | ||
2606 | # =========================================================================== | 2606 | # =========================================================================== |
2607 | # 3D information | 2607 | # 3D information |
2608 | # =========================================================================== | 2608 | # =========================================================================== |
2609 | 2609 | ||
2610 | - # # Download and annotate new RNA 3D chains (Chain objects in pp.update) | 2610 | + # Download and annotate new RNA 3D chains (Chain objects in pp.update) |
2611 | - # # If the original cif file and/or the Json DSSR annotation file already exist, they are not redownloaded/recomputed. | 2611 | + # If the original cif file and/or the Json DSSR annotation file already exist, they are not redownloaded/recomputed. |
2612 | - # # pp.dl_and_annotate(coeff_ncores=0.5) | 2612 | + # pp.dl_and_annotate(coeff_ncores=0.5) |
2613 | - # pp.dl_and_annotate(coeff_ncores=1.0) | 2613 | + pp.dl_and_annotate(coeff_ncores=1.0) |
2614 | - # print("Here we go.") | 2614 | + print("Here we go.") |
2615 | - | 2615 | + |
2616 | - # # At this point, the structure table is up to date. | 2616 | + # At this point, the structure table is up to date. |
2617 | - # # Now save the DSSR annotations to the database. | 2617 | + # Now save the DSSR annotations to the database. |
2618 | - # # Extract the 3D chains to separate structure files if asked with --extract. | 2618 | + # Extract the 3D chains to separate structure files if asked with --extract. |
2619 | - # pp.build_chains(coeff_ncores=1.0) | 2619 | + pp.build_chains(coeff_ncores=1.0) |
2620 | - | 2620 | + |
2621 | - # if len(pp.to_retry): | 2621 | + if len(pp.to_retry): |
2622 | - # # Redownload and re-annotate | 2622 | + # Redownload and re-annotate |
2623 | - # print("> Retrying to annotate some structures which just failed.", flush=True) | 2623 | + print("> Retrying to annotate some structures which just failed.", flush=True) |
2624 | - # pp.dl_and_annotate(retry=True, coeff_ncores=0.3) # | 2624 | + pp.dl_and_annotate(retry=True, coeff_ncores=0.3) # |
2625 | - # pp.build_chains(retry=True, coeff_ncores=1.0) # Use half the cores to reduce required amount of memory | 2625 | + pp.build_chains(retry=True, coeff_ncores=1.0) # Use half the cores to reduce required amount of memory |
2626 | - # print(f"> Loaded {len(pp.loaded_chains)} RNA chains ({len(pp.update) - len(pp.loaded_chains)} ignored/errors).") | 2626 | + print(f"> Loaded {len(pp.loaded_chains)} RNA chains ({len(pp.update) - len(pp.loaded_chains)} ignored/errors).") |
2627 | - # if len(no_nts_set): | 2627 | + if len(no_nts_set): |
2628 | - # print(f"Among errors, {len(no_nts_set)} structures seem to contain RNA chains without defined nucleotides:", no_nts_set, flush=True) | 2628 | + print(f"Among errors, {len(no_nts_set)} structures seem to contain RNA chains without defined nucleotides:", no_nts_set, flush=True) |
2629 | - # if len(weird_mappings): | 2629 | + if len(weird_mappings): |
2630 | - # print(f"{len(weird_mappings)} mappings to Rfam were taken as absolute positions instead of residue numbers:", weird_mappings, flush=True) | 2630 | + print(f"{len(weird_mappings)} mappings to Rfam were taken as absolute positions instead of residue numbers:", weird_mappings, flush=True) |
2631 | - # if pp.SELECT_ONLY is None: | 2631 | + if pp.SELECT_ONLY is None: |
2632 | - # pp.checkpoint_save_chains() | 2632 | + pp.checkpoint_save_chains() |
2633 | - | 2633 | + |
2634 | - # if not pp.HOMOLOGY: | 2634 | + if not pp.HOMOLOGY: |
2635 | - # # Save chains to file | 2635 | + # Save chains to file |
2636 | - # for c in pp.loaded_chains: | 2636 | + for c in pp.loaded_chains: |
2637 | - # work_save(c, homology=False) | 2637 | + work_save(c, homology=False) |
2638 | - # print("Completed.") | 2638 | + print("Completed.") |
2639 | - # exit(0) | 2639 | + exit(0) |
2640 | - | 2640 | + |
2641 | - # # At this point, structure, chain and nucleotide tables of the database are up to date. | 2641 | + # At this point, structure, chain and nucleotide tables of the database are up to date. |
2642 | - # # (Modulo some statistics computed by statistics.py) | 2642 | + # (Modulo some statistics computed by statistics.py) |
2643 | 2643 | ||
2644 | # =========================================================================== | 2644 | # =========================================================================== |
2645 | # Homology information | 2645 | # Homology information |
... | @@ -2661,8 +2661,8 @@ if __name__ == "__main__": | ... | @@ -2661,8 +2661,8 @@ if __name__ == "__main__": |
2661 | pp.fam_list = sorted(rfam_acc_to_download.keys()) | 2661 | pp.fam_list = sorted(rfam_acc_to_download.keys()) |
2662 | 2662 | ||
2663 | if len(pp.fam_list): | 2663 | if len(pp.fam_list): |
2664 | - # pp.prepare_sequences() | 2664 | + pp.prepare_sequences() |
2665 | - # pp.realign() | 2665 | + pp.realign() |
2666 | 2666 | ||
2667 | # At this point, the family table is almost up to date | 2667 | # At this point, the family table is almost up to date |
2668 | # (lacking idty_percent and ali_filtered_length, both set in statistics.py) | 2668 | # (lacking idty_percent and ali_filtered_length, both set in statistics.py) |
... | @@ -2678,7 +2678,7 @@ if __name__ == "__main__": | ... | @@ -2678,7 +2678,7 @@ if __name__ == "__main__": |
2678 | # Prepare the results | 2678 | # Prepare the results |
2679 | # ========================================================================================== | 2679 | # ========================================================================================== |
2680 | 2680 | ||
2681 | - # pp.sanitize_database() | 2681 | + pp.sanitize_database() |
2682 | pp.output_results() | 2682 | pp.output_results() |
2683 | 2683 | ||
2684 | print("Completed.") # This part of the code is supposed to release some serotonin in the modeller's brain, do not remove | 2684 | print("Completed.") # This part of the code is supposed to release some serotonin in the modeller's brain, do not remove | ... | ... |
-
Please register or login to post a comment