Skip to content

ANARCI import #22

@Hrovatin

Description

@Hrovatin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions