Library API¶
Input validation¶
-
insilico.validate_input.
validate_input
(input_file: str) → Dict[source]¶ Read the input_file in YAML format, validate it against the corresponding schema and return a nested dictionary with the input.
Parameters: input_file (str) – path to the input Returns: Input as dictionary Raises: SchemaError – If the input is not valid
Tasks¶
-
insilico.filters.
apply_filter
(filters: Dict, molecules: pandas.core.frame.DataFrame, dependencies: Dict = None) → pandas.core.frame.DataFrame[source]¶ Apply a different set of filters to a molecular set.
Parameters: Returns: Pandas Dataframe
-
insilico.properties.
compute_property
(molecular_properties: Dict, molecules: pandas.core.frame.DataFrame, dependencies: Dict = None) → pandas.core.frame.DataFrame[source]¶ Calculate a set of molecular_properties.
Parameters: Returns: Pandas Dataframe
Graph of Dependecies¶
-
insilico.runner.
build_graph
(steps: Dict, state: pandas.core.frame.DataFrame) → Dict[source]¶ Create a Direct Acyclic Graph containing all the dependencies between the filters and the properties to compute.
Parameters: - steps (dict) – Task to perform
- state – Current DataFrame used as state
Returns: Dictionary representing the graph of dependencies
Raises: DependencyError – if the dependencies are incongruent