-
Notifications
You must be signed in to change notification settings - Fork 18
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: cannot unpack non-iterable NoneType object #60
Comments
Hello I think you ran it a few times, which makes it difficult to debug. Read2tree tries to resume previous runs using log and output folder. |
Hi, this is the code |
Hi, when i used the read2tree, i meet a question as follows:
Re-loading files: 5997 OGs [02:42, 36.81 OGs/s]
Re-loading references for mapping from folder: 100%|?????| 5/5 [00:00<00:00, 7.16 species/s]
Loading alignments : 0 Alignment [00:00, ? Alignment/s]
Mapping reads to species: 0%| | 0/5 [00:00<?, ? species/s]/public/home/pengyan/anaconda3/envs/r2t/lib/python3.10/subprocess.py:961: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
self.stdout = io.open(c2pread, 'rb', bufsize)
/public/home/pengyan/anaconda3/envs/r2t/lib/python3.10/subprocess.py:966: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
self.stderr = io.open(errread, 'rb', bufsize)
No match found for '[MAIN] Done (', found '[' (at char 0), (line:1, col:1)
Mapping reads to species: 0%| | 0/5 [00:00<?, ? species/s]
Traceback (most recent call last):
File "/public/home/pengyan/biosoft/read2tree/read2tree/bin/read2tree", line 16, in
main(sys.argv[1:], exe_name=exe_name(), desc=desc)
File "/public/home/pengyan/anaconda3/envs/r2t/lib/python3.10/site-packages/read2tree/main.py", line 357, in main
mapper = Mapper(args, og_set=ogset.ogs, ref_set=reference.ref, progress=progress) # Run the mapping
File "/public/home/pengyan/anaconda3/envs/r2t/lib/python3.10/site-packages/read2tree/Mapper.py", line 80, in init
self._map_reads_to_references(ref_set)
File "/public/home/pengyan/anaconda3/envs/r2t/lib/python3.10/site-packages/read2tree/Mapper.py", line 289, in _map_reads_to_references
processed_reads = self._call_wrapper(ref_tmp_file_handle, reads,
File "/public/home/pengyan/anaconda3/envs/r2t/lib/python3.10/site-packages/read2tree/Mapper.py", line 110, in _call_wrapper
ngm = ngm_wrapper()
File "/public/home/pengyan/anaconda3/envs/r2t/lib/python3.10/site-packages/read2tree/wrappers/read_mappers/ngm.py", line 62, in call
self.result = self._read_result(error, self.ref_input, self.tmp_folder)
File "/public/home/pengyan/anaconda3/envs/r2t/lib/python3.10/site-packages/read2tree/wrappers/read_mappers/ngm.py", line 117, in _read_result
result = parser.to_dict(outfile, output)
File "/public/home/pengyan/anaconda3/envs/r2t/lib/python3.10/site-packages/read2tree/wrappers/read_mappers/parser.py", line 43, in to_dict
reads_mapped, total_reads, mapping_time = self.parse(stdout)
TypeError: cannot unpack non-iterable NoneType object
The text was updated successfully, but these errors were encountered: