Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Mikado crashes due to a bug in padding #395

Closed
lucventurini opened this issue Mar 26, 2021 · 1 comment · Fixed by #400
Closed

[BUG] Mikado crashes due to a bug in padding #395

lucventurini opened this issue Mar 26, 2021 · 1 comment · Fixed by #400
Assignees

Comments

@lucventurini
Copy link
Collaborator

Error:

2021-03-25 21:37:49,669 - ptg000014l:4535909-4544907 - loci_processer.py:272 - ERROR - analyse_locus - LociProcesser-13 - Invalid CDS length: 2260 % 3 = 1 (536-2795, 0)
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/Mikado/picking/loci_processer.py", line 270, in analyse_locus
    stranded_locus.define_loci()
  File "/usr/local/lib/python3.8/dist-packages/Mikado/loci/superlocus.py", line 1168, in define_loci
    self.define_alternative_splicing()
  File "/usr/local/lib/python3.8/dist-packages/Mikado/loci/superlocus.py", line 1312, in define_alternative_splicing
    self.loci[lid].finalize_alternative_splicing()
  File "/usr/local/lib/python3.8/dist-packages/Mikado/loci/locus.py", line 213, in finalize_alternative_splicing
    failed = self.launch_padding()
  File "/usr/local/lib/python3.8/dist-packages/Mikado/loci/locus.py", line 266, in launch_padding
    templates = self.pad_transcripts(backup)
  File "/usr/local/lib/python3.8/dist-packages/Mikado/loci/locus.py", line 976, in pad_transcripts
    new_transcript = pad_transcript(backup[tid],
  File "/usr/local/lib/python3.8/dist-packages/Mikado/transcripts/pad.py", line 79, in pad_transcript
    transcript = enlarge_orfs(transcript, backup, seq, upstream, downstream, logger)
  File "/usr/local/lib/python3.8/dist-packages/Mikado/transcripts/pad.py", line 380, in enlarge_orfs
    raise InvalidTranscript(orf.invalid_reason)
Mikado.exceptions.InvalidTranscript: Invalid CDS length: 2260 % 3 = 1 (536-2795, 0)

This seems to be triggered by an invalid operation during the expansion of the ORF.

@ljyanesm
Copy link
Collaborator

Also see:

Process LociProcesser-4:
Traceback (most recent call last):
  File "/python/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/mikado/Mikado/picking/loci_processer.py", line 496, in run
    accumulator = serialise_locus(
  File "/mikado/Mikado/picking/_loci_serialiser.py", line 27, in serialise_locus
    assert sublocus.scores_calculated is True, (sublocus.id, sublocus.scores_calculated)
AssertionError: ('sublocus:ptg000014l-:4540629-4544907.multi', False)

lucventurini added a commit that referenced this issue Mar 26, 2021
lucventurini added a commit that referenced this issue Apr 1, 2021
…ue-395-pick-pad-crash' and 'issue-389-prepare-bed12-output' into version-2.2.4.

Fix #136 #395 #389 #397 #396 #385
@lucventurini lucventurini linked a pull request Apr 1, 2021 that will close this issue
lucventurini added a commit that referenced this issue Apr 6, 2021
Fix documentation and GHA tests.

Fix #385
Fix #389 
Fix #395 
Fix #396 
Fix #397
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants