-
Notifications
You must be signed in to change notification settings - Fork 5
Description
I am trying to call 5mc on a bacterial genome and I am encountering the error below. I have run this genome on a Gridion R.10 flowcell and performed the basecalling and alignment using MinKnow/Guppy
Error:
2025-01-14 15:20:24.492709: Starting Per Read Methylation Detection.
2025-01-14 15:20:24.580958: Getting motif positions from the reference.
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/scicomp/home-pure/otg1/miniconda3/envs/deepmod2/lib/python3.12/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
^^^^^^^^^^^^^^^^^^^
File "/scicomp/home-pure/otg1/miniconda3/envs/deepmod2/lib/python3.12/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
^^^^^^^^^^^^^^^^
File "/scicomp/home-pure/otg1/DeepMod2/src/utils.py", line 275, in get_ref_info
seq=ref_fasta.fetch(chrom).upper()
^^^^^^^^^^^^^^^^^^^^^^
File "pysam/libcfaidx.pyx", line 301, in pysam.libcfaidx.FastaFile.fetch
KeyError: "sequence 'NC_000913.3' not present"
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/scicomp/home-pure/otg1/DeepMod2/deepmod2", line 172, in
detect.call_manager(params)
File "/scicomp/home-pure/otg1/DeepMod2/src/detect.py", line 741, in call_manager
res=pool.map(get_ref_info, zip(repeat(params), params['chrom_list']))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scicomp/home-pure/otg1/miniconda3/envs/deepmod2/lib/python3.12/multiprocessing/pool.py", line 367, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scicomp/home-pure/otg1/miniconda3/envs/deepmod2/lib/python3.12/multiprocessing/pool.py", line 774, in get
raise self._value
KeyError: "sequence 'NC_000913.3' not present"
I appreciate any help, thank you.