Skip to main content

No project description provided

Project description

Pathogen Decision Engine Package

The Decision Engine Package is a Python package for building and using decision engines based on rule sets defined in CSV files.

Installation

You can install the package via pip:

pip install pathogen-decision-engine

Usage

Command-Line Interface (CLI)

The package provides a command-line interface (CLI) for performing inference using the decision engine. To use the CLI, you must provide either the path of a rule table path made as a CSV file ... Example:

decision_engine_cli --rule_table_path table.csv --input_dict '{"PA":1, "PVS":0, "PS":1, "PM":2, "PP":1, "BA":1, "BS":0, "BP":0}'

... or either through dict expressed as a string Example

decision_engine_cli --rule_table_dict "{'PA':{'0':1,'1':0},'PVS':{'0':0,'1':1},'PS':{'0':0,'1':'>=1'},'PM':{'0':0,'1':0},'PP':{'0':0,'1':0},'BA':{'0':0,'1':0},'BS':{'0':0,'1':0},'BP':{'0':0,'1':0},'Output':{'0':'Pathogenic','1':'Pathogenic','2':'Pathogenic'}}" --input_dict '{"PA":1, "PVS":0, "PS":1, "PM":2, "PP":1, "BA":1, "BS":0, "BP":0}'

Python API

You can also use the package programmatically in your Python code. Here's an example of how to use the DecisionEngine class:

from pathogen_decision_engine import PathogenDecisionEngine

df = None ### ... create a df dataframe as you wish

# Create a DecisionEngine object
decision_engine = PathogenDecisionEngine(df)

# Define input dictionary
input_dict = {"PA":1, "PVS":0, "PS":1, "PM":2, "PP":1, "BA":1, "BS":0, "BP":0}

# Perform inference
result = decision_engine.infer(input_dict)
print(result)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pathogen_decision_engine-1.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file pathogen_decision_engine-1.0.1.tar.gz.

File metadata

File hashes

Hashes for pathogen_decision_engine-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9609713cdd8c50cada1767bc3922f24f73f453d3c249302f5aaa6f18b2f1b286
MD5 76fbe62af550bea8099d81f80aa89516
BLAKE2b-256 60f1ebbec9423e021e4c9bf752bb56e445b457a757272f8b37d4b49f38b15439

See more details on using hashes here.

File details

Details for the file pathogen_decision_engine-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pathogen_decision_engine-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c56cb37e5178eb2906adceb0bd6950d49e5622cc2b0264b479892a3c15670310
MD5 7cb0c4da141d650f0a0802f984ccc2d7
BLAKE2b-256 47b6016955da6eccdfe2828163fd950f533276c10e3d401e68bba15de0124372

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page