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

Error in rule mikado_prepare #397

Closed
louphey opened this issue Mar 27, 2021 · 3 comments · Fixed by #400
Closed

Error in rule mikado_prepare #397

louphey opened this issue Mar 27, 2021 · 3 comments · Fixed by #400

Comments

@louphey
Copy link

louphey commented Mar 27, 2021

Hello,

I am currently running the following command "daijin mikado Dmelanogaster/mikado.yaml" with mikado v2.2.3 according to the tutorial https://mikado.readthedocs.io/en/latest/Tutorial/Daijin_tutorial/#step-3-running-the-mikado-steps

but I get the following error.

Error in rule mikado_prepare:
jobid: 4
output: Dmelanogaster/5-mikado/mikado_prepared.gtf, Dmelanogaster/5-mikado/mikado_prepared.fasta
log: Dmelanogaster/5-mikado/mikado_prepare.log (check log file(s) for error message)
shell:
mikado prepare -l Dmelanogaster/5-mikado/mikado_prepare.log --start-method=spawn --fasta=Dmelanogaster/0-reference/genome.fa.gz --configuration=/path/to/Dmelanogaster/daijin.2021-03-28_00:34:55.yaml -od Dmelanogaster/5-mikado 2>&1
(one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)

Could you please help with that?

@ljyanesm
Copy link
Collaborator

Dear @louphey,

Could you share the contents of the Dmelanogaster/5-mikado/mikado_prepare.log file? It will contain some relevant details to help identify the issue.

Many thanks,

@louphey
Copy link
Author

louphey commented Mar 27, 2021

Hi, @ljyanesm
The following is the contents of the Dmelanogaster/5-mikado/mikado_prepare.log file

2021-03-28 00:34:57,154 - prepare - prepare.py:177 - INFO - setup - MainProcess - Mikado version: 2.2.3
2021-03-28 00:34:57,154 - prepare - prepare.py:178 - INFO - setup - MainProcess - Command line: /home/app/miniconda2/envs/mikado/bin/mikado prepare -l Dmelanogaster/5-mikado/mikado_prepare.log --start-method=spawn --fasta=Dmelanogaster/0-reference/genome.fa.gz --configuration=/home/lofy/temp/aaa/Dmelanogaster/daijin.2021-03-28_00:34:55.yaml -od Dmelanogaster/5-mikado
2021-03-28 00:34:57,154 - prepare - prepare.py:179 - INFO - setup - MainProcess - Random seed: 0
2021-03-28 00:34:57,161 - prepare - prepare.py:630 - INFO - prepare - MainProcess - Output dir: Dmelanogaster/5-mikado. Output GTF: Dmelanogaster/5-mikado/mikado_prepared.gtf. Output Fasta: Dmelanogaster/5-mikado/mikado_prepared.fasta
2021-03-28 00:34:57,161 - prepare - prepare.py:634 - INFO - prepare - MainProcess - Loading reference file
2021-03-28 00:34:57,163 - prepare - prepare.py:636 - INFO - prepare - MainProcess - Finished loading genome file
2021-03-28 00:34:57,163 - prepare - prepare.py:637 - INFO - prepare - MainProcess - Started loading exon lines
2021-03-28 00:34:57,163 - prepare - prepare.py:441 - INFO - _load_exon_lines_multi - MainProcess - Starting to load lines from 12 files (using 10 processes)
2021-03-28 00:34:59,484 - prepare - prepare.py:501 - INFO - _load_exon_lines_multi - MainProcess - Finished parsing all input files
2021-03-28 00:34:59,539 - prepare - prepare.py:531 - INFO - load_exon_lines - MainProcess - Finished loading lines from 12 files
2021-03-28 00:34:59,543 - prepare - prepare.py:646 - INFO - prepare - MainProcess - Finished loading exon lines
2021-03-28 00:34:59,550 - prepare - prepare.py:685 - ERROR - prepare - MainProcess - [Errno 2] No such file or directory: 'Dmelanogaster/5-mikado/mikado_shelf_00000.db'
Traceback (most recent call last):
File "/home/app/miniconda2/envs/mikado/lib/python3.8/site-packages/Mikado/preparation/prepare.py", line 669, in prepare
shelves = dict((shelf_name, open(shelf_name, "rb")) for shelf_name in shelve_table["shelf"].unique())
File "/home/app/miniconda2/envs/mikado/lib/python3.8/site-packages/Mikado/preparation/prepare.py", line 669, in
shelves = dict((shelf_name, open(shelf_name, "rb")) for shelf_name in shelve_table["shelf"].unique())
FileNotFoundError: [Errno 2] No such file or directory: 'Dmelanogaster/5-mikado/mikado_shelf_00000.db'
2021-03-28 00:34:59,552 - prepare - prepare.py:688 - ERROR - prepare - MainProcess - Mikado has encountered an error, exiting
2021-03-28 00:34:59,553 - prepare - prepare.py:705 - ERROR - prepare - MainProcess - Mikado prepare has encountered a fatal error. Please check the logs and, if there is a bug,report it to https://github.com/EI-CoreBioinformatics/mikado/issues

@ljyanesm
Copy link
Collaborator

Dear @louphey,

Thank you for reporting this issue. I can confirm this is reproducible in the current release 2.2.3, this issue has been resolved already in branch issue-395-pick-pad-crash. The changes in that branch will be released as soon as possible.

Thank you again for bringing this to attention

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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants