Open ekg opened 5 years ago
Is this still an issue? I tried installing via conda and contains
worked for me.
Sorry for the late response.
Just to add that I have a similar problem with conda + python3.6 . With conda+python3.7 it works fine.
$ refseq_masher contains out/contigs.fa
Loading /usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/refseq_masher/data/RefSeqSketches.msh...
4669418 distinct hashes.
Streaming from /usr/users/QIB_fr005/deolivl/Downloads/Charlys/Leo_01/out/contigs.fa...
Estimated distinct k-mers in mixture: 698953
Summing shared...
Computing coverage medians...
Writing output...
Traceback (most recent call last):
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/bin/refseq_masher", line 10, in <module>
sys.exit(cli())
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/refseq_masher/cli.py", line 136, in contains
parallelism=parallelism)
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/refseq_masher/mash/screen.py", line 46, in vs_refseq
df = mash_screen_output_to_dataframe(stdout)
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/refseq_masher/mash/parser.py", line 124, in mash_screen_output_to_dataframe
dfmerge = pd.merge (dfmatch, df, on='match_id')
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/pandas/core/reshape/merge.py", line 86, in merge
validate=validate,
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/pandas/core/reshape/merge.py", line 627, in __init__
) = self._get_merge_keys()
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/pandas/core/reshape/merge.py", line 996, in _get_merge_keys
left_keys.append(left._get_label_or_level_values(lk))
File "/usr/users/QIB_fr005/deolivl/local/miniconda3/envs/py36/lib/python3.6/site-packages/pandas/core/generic.py", line 1692, in _get_label_or_level_values
raise KeyError(key)
KeyError: 'match_id'
cheers
I installed via:
But I can't seem to get
contains
to work:Any ideas?