Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANARCI import #22

Open
Hrovatin opened this issue Jun 21, 2024 · 0 comments
Open

ANARCI import #22

Hrovatin opened this issue Jun 21, 2024 · 0 comments

Comments

@Hrovatin
Copy link

Hrovatin commented Jun 21, 2024

I had issues installing AbNumber due to missing HMMER dependency on Mac M3, which I solved by the following workaround:

Instal hmmer
Install anarci via: git clone https://github.com/oxpig/ANARCI.git and follow instructions on github
Install abnumber via: pip install git+https://github.com/prihoda/abnumber

However, when importing abnumber I get this error

>>> import abnumber
ANARCI module not available. Please install it separately or install AbNumber through Bioconda
See: https://abnumber.readthedocs.io/

ANARCI seems to be working, but has different import name than specified in

from anarci.anarci import anarci

The below namely works:

# Command
from ANARCI import anarci
anarci(
        [(f'id{1}', 'AATATATATAT')],
        scheme='imgt',
        allowed_species=None,
    )

#Out: 
([None],
 [None],
 [[['id',
    'description',
    'evalue',
    'bitscore',
    'bias',
    'query_start',
    'query_end']]])

So maybe

from anarci.anarci import anarci
should be changed to from ANARCI import anarci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant