Coder Social home page Coder Social logo

Comments (6)

thh32 avatar thh32 commented on June 12, 2024 1

The link in the instructions is broken so I used the version linked above.

One issue could be that the download_eggnog_data.py script failed to download the hmm files so I had to manually go and download the files.

from carveme.

thh32 avatar thh32 commented on June 12, 2024 1

Thanks for the advice, good luck trying to sort it out.

from carveme.

thh32 avatar thh32 commented on June 12, 2024

I have just tried using the eggnog-mapper, however none of the three inputs produced seem to be accepted as such;

$ carve --egg eggnogmappings.emapper.annotations 
Traceback (most recent call last):
  File "/usr/local/bin/carve", line 343, in <module>
    hard=args.hard
  File "/usr/local/bin/carve", line 108, in main
    annotations = load_eggnog_data(inputfile)
  File "/usr/local/lib/python2.7/dist-packages/carveme/reconstruction/eggnog.py", line 37, in load_eggnog_data
    data = split_and_expand(data, 'BiGG_gene', ',')
  File "/usr/local/lib/python2.7/dist-packages/carveme/reconstruction/eggnog.py", line 5, in split_and_expand
    split_col = df[col].str.split(sep).apply(pd.Series, 1).stack()
  File "/home/thomashitch/.local/lib/python2.7/site-packages/pandas/core/generic.py", line 4372, in __getattr__
    return object.__getattribute__(self, name)
  File "/home/thomashitch/.local/lib/python2.7/site-packages/pandas/core/accessor.py", line 133, in __get__
    accessor_obj = self._accessor(obj)
  File "/home/thomashitch/.local/lib/python2.7/site-packages/pandas/core/strings.py", line 1895, in __init__
    self._validate(data)
  File "/home/thomashitch/.local/lib/python2.7/site-packages/pandas/core/strings.py", line 1917, in _validate
    raise AttributeError("Can only use .str accessor with string "
AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas



$ carve --egg eggnogmappings.emapper.hmm_hits 
Traceback (most recent call last):
  File "/usr/local/bin/carve", line 343, in <module>
    hard=args.hard
  File "/usr/local/bin/carve", line 108, in main
    annotations = load_eggnog_data(inputfile)
  File "/usr/local/lib/python2.7/dist-packages/carveme/reconstruction/eggnog.py", line 37, in load_eggnog_data
    data = split_and_expand(data, 'BiGG_gene', ',')
  File "/usr/local/lib/python2.7/dist-packages/carveme/reconstruction/eggnog.py", line 5, in split_and_expand
    split_col = df[col].str.split(sep).apply(pd.Series, 1).stack()
  File "/home/thomashitch/.local/lib/python2.7/site-packages/pandas/core/generic.py", line 4372, in __getattr__
    return object.__getattribute__(self, name)
  File "/home/thomashitch/.local/lib/python2.7/site-packages/pandas/core/accessor.py", line 133, in __get__
    accessor_obj = self._accessor(obj)
  File "/home/thomashitch/.local/lib/python2.7/site-packages/pandas/core/strings.py", line 1895, in __init__
    self._validate(data)
  File "/home/thomashitch/.local/lib/python2.7/site-packages/pandas/core/strings.py", line 1917, in _validate
    raise AttributeError("Can only use .str accessor with string "
AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas



$ carve --egg eggnogmappings.emapper.seed_orthologs 
Traceback (most recent call last):
  File "/usr/local/bin/carve", line 343, in <module>
    hard=args.hard
  File "/usr/local/bin/carve", line 108, in main
    annotations = load_eggnog_data(inputfile)
  File "/usr/local/lib/python2.7/dist-packages/carveme/reconstruction/eggnog.py", line 37, in load_eggnog_data
    data = split_and_expand(data, 'BiGG_gene', ',')
  File "/usr/local/lib/python2.7/dist-packages/carveme/reconstruction/eggnog.py", line 5, in split_and_expand
    split_col = df[col].str.split(sep).apply(pd.Series, 1).stack()
  File "/home/thomashitch/.local/lib/python2.7/site-packages/pandas/core/generic.py", line 4372, in __getattr__
    return object.__getattribute__(self, name)
  File "/home/thomashitch/.local/lib/python2.7/site-packages/pandas/core/accessor.py", line 133, in __get__
    accessor_obj = self._accessor(obj)
  File "/home/thomashitch/.local/lib/python2.7/site-packages/pandas/core/strings.py", line 1895, in __init__
    self._validate(data)
  File "/home/thomashitch/.local/lib/python2.7/site-packages/pandas/core/strings.py", line 1917, in _validate
    raise AttributeError("Can only use .str accessor with string "
AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas

Any idea what is going wrong?

from carveme.

cdanielmachado avatar cdanielmachado commented on June 12, 2024

Did you follow these instructions? https://carveme.readthedocs.io/en/latest/advanced.html#eggnog-mapper

from carveme.

cdanielmachado avatar cdanielmachado commented on June 12, 2024

Unfortunately eggnog mapper and carveme are not synchronized, so it is possible that the older eggnog version is not working properly. I will try to look into this as soon as possible. In the meantime I would suggest you just use diamond as the default, unless you really must use eggnog. By the way, the file to use is the annotations file.

from carveme.

arianccbasile avatar arianccbasile commented on June 12, 2024

The link in the instructions is broken so I used the version linked above.

One issue could be that the download_eggnog_data.py script failed to download the hmm files so I had to manually go and download the files.

Sorry @thh32 I am having the same problem, I can download no database (no bact,euk,viruses nor arch). How did u do?

from carveme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.