pypath.core.complex.AbstractComplexResource§
- class pypath.core.complex.AbstractComplexResource(name, ncbi_tax_id=9606, input_method=None, input_args=None, dump=None, **kwargs)[source]§
Bases:
AbstractResource
A resource which provides information about molecular complexes.
- __init__(name, ncbi_tax_id=9606, input_method=None, input_args=None, dump=None, **kwargs)[source]§
- namestr
Custom name for the resource.
- input_methodcallable
Method providing the input data.
- process_methodcallable
Method processing the data and yielding
intera.Complex
instances.
Methods
__init__
(name[, ncbi_tax_id, input_method, ...])name : str
from_dump
()load
()Loads the data by calling
input_method
.make_df
()process
()Calls the
_process_method
.save_to_pickle
(pickle_file)Sets the data input method by looking up in
inputs
module if necessary.update_index
()Attributes
all_sources
curation_effort
has_stoichiometry
heteromers
homomers
numof_references
summary
summary_str
- load_data()§
Loads the data by calling
input_method
.
- process()§
Calls the
_process_method
.
- set_method()§
Sets the data input method by looking up in
inputs
module if necessary.