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

TypeError: 'NoneType' object is not subscriptable #10

Open
Arkadiy-Garber opened this issue Apr 8, 2023 · 2 comments
Open

TypeError: 'NoneType' object is not subscriptable #10

Arkadiy-Garber opened this issue Apr 8, 2023 · 2 comments

Comments

@Arkadiy-Garber
Copy link

Any insight in what is causing this error would be appreciated. Thanks,
Arkadiy

Command: python /data/MAB/bin/DeepMod2/deepmod2 detect-guppy --threads 24 --fast5 ../../../fast5_pass/single_barcode12 --ref assembly.fasta --bam assembly.bam

RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
2023-04-07 18:34:06.018981: Number of files: 110340

2023-04-07 18:34:06.078891: Processing BAM File.
2023-04-07 18:44:13.873240: Finished Processing BAM File.
2023-04-07 18:44:13.873400: Starting Per Read Methylation Detection.
2023-04-07 18:44:17.356034: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  SSE4.1 SSE4.2 AVX AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/data/MAB/miniconda3/envs/deepmod2/lib/python3.9/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/data/MAB/bin/DeepMod2/src/guppy.py", line 176, in detect
    base_level_data, seq_len, mean_qscore, sequence_length = get_read_signal(read, params['guppy_group'])
  File "/data/MAB/bin/DeepMod2/src/guppy.py", line 121, in get_read_signal
    segment=read.get_analysis_attributes(guppy_group)['segmentation']
TypeError: 'NoneType' object is not subscriptable
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/data/MAB/bin/DeepMod2/deepmod2", line 150, in <module>
    run(params)
  File "/data/MAB/bin/DeepMod2/deepmod2", line 11, in run
    read_pred_file=modDetect.per_read_predict(params)
  File "/data/MAB/bin/DeepMod2/src/modDetect.py", line 59, in per_read_predict
    file_list=[file_name for file_name in res]
  File "/data/MAB/bin/DeepMod2/src/modDetect.py", line 59, in <listcomp>
    file_list=[file_name for file_name in res]
  File "/data/MAB/miniconda3/envs/deepmod2/lib/python3.9/multiprocessing/pool.py", line 870, in next
    raise value
TypeError: 'NoneType' object is not subscriptable
@sagnikbanerjee15
Copy link

You might want to check out #9

@umahsn
Copy link
Collaborator

umahsn commented Apr 17, 2023

Hi,

It seems like your FAST5 files do not contain move tables. How did you basecall these files?

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

3 participants