Giter Club home page Giter Club logo

acranker's People

Contributors

amina01 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

acranker's Issues

XGBModel bug

Hi! Thank you for your repo!
I am trying to train XGBRanker in xgbranker.py.
With xgboost==0.90, it reports

File "AcRanker/xgbranker.py", line 108, in fit
    xgb_model=None)
xgboost.core.XGBoostError: Invalid Parameter format for seed expect int but value='None'

With xgboost==1.0.0, it reports

File "AcRanker/xgbranker.py", line 108, in fit
    xgb_model=None)
xgboost.core.XGBoostError: Invalid Parameter format for verbosity expect int but value='True'

I have searched on google but got no solution. Could you please me? I will appreciate.

Error when using AcRanker: ImportError: cannot import name 'joblib' from 'sklearn.externals'.

Hi there,

When I try to use the AcRanker tool through Conda, I receive the following error:

Traceback (most recent call last): File "/home/ubuntu/AcRanker/acranker.py", line 9, in <module> from server2 import * File "/home/ubuntu/AcRanker/server2.py", line 29, in <module> from sklearn.externals import joblib ImportError: cannot import name 'joblib' from 'sklearn.externals' (/opt/miniconda3/envs/AcRanker/lib/python3.11/site-packages/sklearn/externals/__init__.py) (AcRanker) ubuntu@jdtest2:~/AcRanker$ python acranker.py --help Traceback (most recent call last): File "/home/ubuntu/AcRanker/acranker.py", line 9, in <module> from server2 import * File "/home/ubuntu/AcRanker/server2.py", line 29, in <module> from sklearn.externals import joblib ImportError: cannot import name 'joblib' from 'sklearn.externals' (/opt/miniconda3/envs/AcRanker/lib/python3.11/site-packages/sklearn/externals/__init__.py)

I was wondering if anyone has come across this error and if so, how they resolved it?

Thanks in advance!

Accepted score?

Hi,
I used your online tool and got a couple of proteins with scores. What is an acceptable score for an Acr hit? What do positive and negative scores imply?

Thanks

Including the latest published Anti-CRISPRs in the training model

Hi,

We are currently planning to use Acranker for a portion of our project. As new Anti-CRISPR proteins were experimentally verified and published since the original training of Acranker (a total of 57 published Anti-CRISPRs as of now), would it be possible for you to update the model to include the latest discovered Anti-CRISPR proteins? Thanks!

Best,
Bowen

How to interpret model scores

I just ran AcRanker on 339 known Acrs from AcrHub. Only 22 of the 339 proteins had positive scores (6.5%). Besides using the rank, is there a recommended score threshold for classifying Acrs?

Edit: just saw you already answered this

trouble with xgboost version

Hi,

When trying to run the Acranker locally, the following error came up:

Traceback (most recent call last):
File "acranker.py", line 14, in
analyzePhage(prot_path, rank_path)
File "/mnt/array1/bowen/TOOLS/AcRanker/server2.py", line 237, in analyzePhage
model=pickle.load(open('xgb_rank.pickle', 'rb'))
File "/home/yangbowen/.local/lib/python3.6/site-packages/xgboost/core.py", line 1093, in setstate
_LIB.XGBoosterUnserializeFromBuffer(handle, ptr, length))
File "/home/yangbowen/.local/lib/python3.6/site-packages/xgboost/core.py", line 189, in _check_call
raise XGBoostError(py_str(_LIB.XGBGetLastError()))

I believe this is a problem with the version of xgboost being used. I have the '1.0.0' version. could you help me bypass this error?

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.