PoonLab / MiCall-Lite

Pipeline for processing FASTQ data from an Illumina MiSeq for human RNA virus (HIV, hepatitis C virus) genotyping
GNU Affero General Public License v3.0
4 stars 3 forks source link

Deprecated function 'itertools.imap' #37

Closed dfornika closed 4 years ago

dfornika commented 4 years ago

I'm getting the following error when running micall-lite v0.1rc2 on python 3.7:

Traceback (most recent call last):
  File "/home/dfornika/miniconda3/envs/__micall-lite@0.1rc2/bin/micall", line 248, in <module>
    run_sample(args)
  File "/home/dfornika/miniconda3/envs/__micall-lite@0.1rc2/bin/micall", line 163, in run_sample
    keep=args.keep
  File "/home/dfornika/miniconda3/envs/__micall-lite@0.1rc2/lib/python3.7/site-packages/micall/core/remap.py", line 526, in remap
    conseqs = build_conseqs(samfile, seeds=seeds, worker_pool=worker_pool)
  File "/home/dfornika/miniconda3/envs/__micall-lite@0.1rc2/lib/python3.7/site-packages/micall/core/remap.py", line 363, in build_conseqs
    distance_report=distance_report)
  File "/home/dfornika/miniconda3/envs/__micall-lite@0.1rc2/lib/python3.7/site-packages/micall/core/remap.py", line 178, in sam_to_conseqs
    merged_reads = itertools.imap(
AttributeError: module 'itertools' has no attribute 'imap'

It seems that the imap function was removed from itertools, but the built-in map() function can be used in its place.

https://stackoverflow.com/a/30271758

ArtPoon commented 4 years ago

Thanks for catching this error. I'll investigate.

dfornika commented 4 years ago

@ArtPoon thanks for merging. Would you be able to pin a new release soon to these bugfixes can be pushed to the bioconda package?

ArtPoon commented 4 years ago

@ArtPoon thanks for merging. Would you be able to pin a new release soon to these bugfixes can be pushed to the bioconda package?

done