-
Notifications
You must be signed in to change notification settings - Fork 29
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
NameError: name 'vertex_counter' is not defined #137
Comments
Hi there, can you please let me know what version of TALON you're running? |
talon 5.0 pypi_0 pypi |
It seems to initiate properly but then fails: [ 2023-10-11 13:41:18 ] Started TALON run |
It looks like you are having the same issue as in #136, vaguely. I noticed that you're both using Python >= 3.10. Digging into this, it looks like the behaviour of sharing these "counter" variables between multiprocessing threads has changed (see https://stackoverflow.com/questions/70552775/multiprocess-inherently-shared-memory-in-no-longer-working-on-python-3-10-comin). Maybe you could try downgrading your Python version. I will likely try to update the requirements in the |
Thanks so much for the reply. Ill try it now. |
Just to follow up, I tested this behavior and found that I was able to reproduce your issue with Python >= 3.8, as the Stackoverflow thread I found suggested. I have now included <3.8 as a Python dependency in the installation requirements in the latest release. Please try installing with this version and see if this fixes your issue! |
Tried to run TALON with the following command:
mkdir TALON_output
talon --f config.csv
--db hg38.db
--build hg38_rmsk_ucsd
--threads 4
--o TALON_output/
but I got this error:
Traceback (most recent call last):
File "/Users/kiliankleemann/anaconda3/lib/python3.11/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
^^^^^^^^^^^^^^^^^^^
File "/Users/kiliankleemann/anaconda3/lib/python3.11/multiprocessing/pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kiliankleemann/anaconda3/lib/python3.11/site-packages/talon/talon.py", line 2333, in parallel_talon
annotation_info = annotate_read(record, cursor, run_info,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kiliankleemann/anaconda3/lib/python3.11/site-packages/talon/talon.py", line 2514, in annotate_read
annotation_info = identify_monoexon_transcript(chrom, positions, strand,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kiliankleemann/anaconda3/lib/python3.11/site-packages/talon/talon.py", line 1817, in identify_monoexon_transcript
vertex_IDs, v_novelty, diff_5p, diff_3p = match_monoexon_vertices(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kiliankleemann/anaconda3/lib/python3.11/site-packages/talon/talon.py", line 193, in match_monoexon_vertices
vertex_match = create_vertex(chromosome, position, location_dict, run_info)[
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kiliankleemann/anaconda3/lib/python3.11/site-packages/talon/talon.py", line 416, in create_vertex
new_ID = vertex_counter.increment()
^^^^^^^^^^^^^^
NameError: name 'vertex_counter' is not defined
The text was updated successfully, but these errors were encountered: