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

UnboundLocalError: local variable 'pre_name' referenced before assignment #107

Open
TmrSegev opened this issue Dec 29, 2024 · 2 comments
Open

Comments

@TmrSegev
Copy link

Hi,

I recently used mirge-build to add a new species, and when running miRge, I encountered the following error, which prevents the creation of the GFF file:

Summarizing and tabulating results...
Traceback (most recent call last):
File "/home/stome/.local/bin/miRge3.0", line 8, in
sys.exit(main())
File "/home/stome/.local/lib/python3.8/site-packages/mirge/main.py", line 166, in main
summarize(args, workDir, ref_db, base_names, pdMapped, sampleReadCounts, trimmedReadCounts, trimmedReadCountsUnique)
File "/home/stome/.local/lib/python3.8/site-packages/mirge/libs/summary.py", line 839, in summarize
create_gff(args, pre_mirDict, mirDict, d, filenamegff, cannonical_4gff, isomirs_4gff, base_names, ref_db, annotation_lib, workDir, mirRPM_completeSet)
File "/home/stome/.local/lib/python3.8/site-packages/mirge/libs/summary.py", line 120, in create_gff
pre_cur_name[mature_name] = pre_name
UnboundLocalError: local variable 'pre_name' referenced before assignment

Could you please help me identify the issue? We followed the requirements in the documentation for mirge-build, but we are having difficulty pinpointing the problem.
Thank you,
Tomer

@arunhpatil
Copy link
Collaborator

Hi @TmrSegev,

I missed your message during the holidays. Were you able to fix it? I think this is the issue commonly found in iOS. If that is the case, let me know I will find a fix (Are you testing this on Mac?). I apologies for not getting back to you on this earlier.

Thank you,
Arun.

@TmrSegev
Copy link
Author

Hi,

Thank you for the response!
We managed to fix it by adapting our GFF file format to the exact GFF3 format you used for homo sapiens.

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

No branches or pull requests

2 participants