About ↑
The code runs on pure python with the following dependencies:
numpy
scipy
matplotlib
pandas
scikit-learn
statsmodels
Install ↑
You can install spock using pip:
pip install navicat_spock
Afterwards, you can call spock as:
python -m navicat_spock [-h] [-version] -i [FILENAMES] [-wp WP] [-v VERB] [-pm PLOTMODE] [-rng SEED] [-fa FA] [-is IMPUTER_STRAT] [--plot_all PREFIT] [--save_fig SAVE_FIG] [--save_csv SAVE_CSV]
or simply
navicat_spock [-h] [-version] -i [FILENAMES] [-wp WP] [-v VERB] [-pm PLOTMODE] [-rng SEED] [-fa FA] [-is IMPUTER_STRAT] [--plot_all PREFIT] [--save_fig SAVE_FIG] [--save_csv SAVE_CSV]
Alternatively, you can download the package and execute:
python setup.py install
Afterwards, you can call spock as above. Options can be consulted using the -h
flag in either case. The help menu is quite detailed.
Note that the volcano plot generation function is directly exposed in case you want to use it in your code.
Examples ↑
The manuscript_examples
subdirectory contains several examples used in the manuscript. Any of the data files can be run as:
python -m navicat_spock -i [FILENAME]
We also provide a jupyter notebook where the plots are generated one by one.
The input of spock is a pandas
compatible dataframe, which includes plain .csv and .xls files.
Regarding format, spock expects headers for all columns. The first column must contain names/identifiers. The catalytic performance metric must include the word "target" in its header. The rest of the columns will be interpreted as potential descriptors.
High verbosity levels (-v 1
, -v 2
, etc.) will force spock to print out information about every step. This can be useful for understanding what the code is doing and what can have possibly gone wrong. To be as automated as possible, reasonable default values are set for most choices.
The plotmode (-pm 1
, -pm 2
) option can be used to modify the default look of the generated pngs, including more detail as the plotmode level increases.
Citation ↑
Please cite the accompanying manuscript (to be submitted), which clarifies the details of volcano plot construction, and this repository through its DOI.