Giter Site home page Giter Site logo

Database path about checkm2 HOT 5 CLOSED

madscort avatar madscort commented on August 10, 2024 3
Database path

from checkm2.

Comments (5)

jakobnissen avatar jakobnissen commented on August 10, 2024 1

We have hit the exact same issue now and can't easily run CheckM2 for this reason.
Our current workaround is that each individual user in our cluster downloads and installs CheckM2 independently, but that's not a great solution.

from checkm2.

madscort avatar madscort commented on August 10, 2024 1

I apparently missed that the path can be set by setting the environmental variable CHECKM2DB using:
export CHECKM2DB="path/to/database"

from checkm2.

chklovski avatar chklovski commented on August 10, 2024 1

Thanks, I've added a description of CHECKM2DB variable. Release 1.0.1 now also has a --database_path option for checkm2 predict.

from checkm2.

maxibor avatar maxibor commented on August 10, 2024

Ehy @chklovski and @dparks1134 ,
This looks like it is the same issue from Checkm1 (see Ecogenomics/CheckM#326) which has a simple fix: allow to save the configuration file somewhere else.

I believe something like this should do the trick (with an extra CLI flag to get the config path):

class DefaultValues():
"""Default values for filenames and common constants."""
DATA_PATH = os.path.join(os.path.dirname(__file__), 'data')
MODEL_PATH = os.path.join(os.path.dirname(__file__), 'models')
VERSION_PATH = os.path.join(os.path.dirname(__file__), 'version')

class DefaultValues():
     """Default values for filenames and common constants.""" 
    def __init__(self, default_dir=None):
           if default_dir:
                self.default_dir = default_dir
           else:
                 self.default_dir = os.path.dirname(__file__)
     DATA_PATH =  os.path.join(self.default_dir , 'data') 
     MODEL_PATH = os.path.join(self.default_dir , 'models') 
     VERSION_PATH = os.path.join(self.default_dir , 'version') 

from checkm2.

nick-youngblut avatar nick-youngblut commented on August 10, 2024

I apparently missed that the path can be set by setting the environmental variable CHECKM2DB using:
export CHECKM2DB="path/to/database"

It would be very helpful to add this info to https://github.com/chklovski/CheckM2#database

Better yet: adding --database-path to checkm2 predict would be awesome

from checkm2.

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.