Ad hoc fixes to make nerpa 1.1 run on mibig inputs#22
Open
azmtag wants to merge 4 commits intonerpa-1.1.0from
Open
Ad hoc fixes to make nerpa 1.1 run on mibig inputs#22azmtag wants to merge 4 commits intonerpa-1.1.0from
azmtag wants to merge 4 commits intonerpa-1.1.0from
Conversation
azmtag
commented
Mar 10, 2024
| self.single_amino_pred = prediction_data['single_amino_pred'] | ||
| self.uncertain = prediction_data['uncertain'] | ||
| else: | ||
| raise RuntimeError('Neither "nrpys" nor "NRPSPredictor2" in domain prediction.') |
Collaborator
Author
There was a problem hiding this comment.
BGC0001329 and BGC0002100 cause this exception
… Skip BGCs exceeding this limit.
azmtag
commented
Mar 10, 2024
| 0, predictions_info_list, dirname) | ||
| except KeyboardInterrupt as e: | ||
| raise e | ||
| except Exception as e: |
Collaborator
Author
There was a problem hiding this comment.
BGC0002095 causes
Traceback (most recent call last):
File "/home/azat/tools/nerpa-1-1/bin/nerpa.py", line 355, in <module>
run(args, log)
File "/home/azat/tools/nerpa-1-1/bin/nerpa.py", line 305, in run
path_predictions = predictions_preprocessor.create_predictions_by_antiSMASH_out(get_antismash_v3_compatible_input_paths(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/azat/tools/nerpa-1-1/share/nerpa/nerpa_pipeline/predictions_preprocessor.py", line 89, in create_predictions_by_antiSMASH_out
handle_helper.debug_print_parts(dirname, parts, orf_domains, orf_ori, orf_pos)
File "/home/azat/tools/nerpa-1-1/share/nerpa/nerpa_pipeline/handle_helper.py", line 139, in debug_print_parts
print(cur_orf + "[" + str(orf_pos[cur_orf][0]) + "-" +
~~~~~~~^^^^^^^^^
KeyError: 'ctg1_extra_gene'
azmtag
commented
Mar 10, 2024
| handle_helper.debug_print_parts(dirname, parts, orf_domains, orf_ori, orf_pos) | ||
|
|
||
| if len(parts) > 100: | ||
| raise RuntimeError(f'Too many parts: {len(parts)}') |
Collaborator
Author
There was a problem hiding this comment.
BGC0000459: 347 parts
BGC0001033: 34460 parts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a technical PR to keep track of my ad-hoc changes