iggytop.adapters.iedb_adapter.IEDBAdapter#
- class iggytop.adapters.iedb_adapter.IEDBAdapter(bc, cache_dir=None, receptors_to_include=('TCR', 'BCR'), test=False)#
BioCypher adapter for the Immune Epitope Database IEDB.
- __init__(bc, cache_dir=None, receptors_to_include=('TCR', 'BCR'), test=False)#
Initializes the BaseAdapter instance.
- Parameters:
Methods
__init__(bc[, cache_dir, ...])Initializes the BaseAdapter instance.
create_anndata()Creates an Anndata object from the AIRR cell data and saves it to a file in the cache directory.
Yield BioCypher edges generated via OntoWeaver.
Retrieves the latest release of the IEDB database.
Yield BioCypher nodes generated via OntoWeaver.
read_table(bc, table_path, receptors[, test])Reads and processes the IEDB table from the downloaded database file.
set_metadata([version, source_url, ...])Sets the metadata for the adapter.
Attributes
File name of the BCR data in IEDB.
Directory name for the downloaded database.
Name of the database.
URL to download the IEDB database.
File name of the TCR data in IEDB.
airr_cellsProperty to get the list of AIRR cells.
Receptor types available in IEDB.
cache_dirProperty to get the cache directory.
db_nameProperty to get the database name.
metadataProperty to get the adapter metadata.
receptorsProperty to get the available receptor types.
tableProperty to get the data table.
- get_edges()#
Yield BioCypher edges generated via OntoWeaver.
- get_latest_release(bc)#
Retrieves the latest release of the IEDB database.
- get_nodes()#
Yield BioCypher nodes generated via OntoWeaver.
- read_table(bc, table_path, receptors, test=False)#
Reads and processes the IEDB table from the downloaded database file.
- Parameters:
- Return type:
DataFrame- Returns:
A DataFrame containing the processed table data.
- Raises:
FileNotFoundError – If the table file cannot be found.
- BCR_FNAME = 'bcr_full_v3.csv'#
File name of the BCR data in IEDB.
- DB_DIR = 'iedb_latest'#
Directory name for the downloaded database.
- DB_NAME: str = 'IEDB'#
Name of the database.
- DB_URL = 'https://www.iedb.org/downloader.php?file_name=doc/receptor_full_v3.zip'#
URL to download the IEDB database.
- TCR_FNAME = 'tcr_full_v3.csv'#
File name of the TCR data in IEDB.
- _abc_impl = <_abc._abc_data object>#
- available_receptors: list[str] = ['TCR', 'BCR']#
Receptor types available in IEDB.