Monopogen icon indicating copy to clipboard operation
Monopogen copied to clipboard

Error about data preprocess

Open TuoCai2000 opened this issue 10 months ago • 6 comments

Hello!Thank you for developing monopogen! I run the code:python ${path}/src/Monopogen.py preProcess -b test.lst -o 01.test -a ${path}/apps,but got error like this:

multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/public/home/user/program/miniconda3/envs/monopogen/lib/python3.7/multiprocessing/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/public/home/user/program/miniconda3/envs/monopogen/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar return list(map(*args)) File "/public/home/user/program/Monopogen/src/germline.py", line 206, in BamFilter if val < max_mismatch: UnboundLocalError: local variable 'val' referenced before assignment """

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

Traceback (most recent call last): File "/public/home/user/program/Monopogen/src/Monopogen.py", line 435, in main() File "/public/home/user/program/Monopogen/src/Monopogen.py", line 428, in main args.func(args) File "/public/home/user/program/Monopogen/src/Monopogen.py", line 313, in preProcess result = pool.map(BamFilter, para_lst) File "/public/home/user/program/miniconda3/envs/monopogen/lib/python3.7/multiprocessing/pool.py", line 268, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "/public/home/user/program/miniconda3/envs/monopogen/lib/python3.7/multiprocessing/pool.py", line 657, in get raise self._value UnboundLocalError: local variable 'val' referenced before assignment

I would appreciate if you can help me. Thank you very much!

TuoCai2000 avatar Sep 06 '23 09:09 TuoCai2000