navicat-spock


Namenavicat-spock JSON
Version 0.0.4 PyPI version JSON
download
home_pagehttps://github.com/rlaplaza/spock
SummaryVolcano Plot fitting tool
upload_time2025-01-07 18:57:31
maintainerNone
docs_urlNone
authorrlaplaza, lcmd-epfl, ace-ethz, dcl-ethz
requires_python>=3.8
licenseNone
keywords compchem
VCS
bugtrack_url
requirements ipython ipywidgets markdown matplotlib numpy pandas scikit_learn scipy setuptools statsmodels
Travis-CI No Travis.
coveralls test coverage No coveralls.
            spock: Volcano Plot Fitting Tool
==============================================

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/rlaplaza/spock/HEAD?labpath=App.ipynb)
[![DOI](https://zenodo.org/badge/764582532.svg)](https://zenodo.org/doi/10.5281/zenodo.12804607)

![spock logo](./images/spock_logo.png)
[![PyPI version](https://badge.fury.io/py/navicat-spock.svg)](https://badge.fury.io/py/navicat-spock)

## Contents
* [About](#about-)
* [Install](#install-)
* [Examples](#examples-)
* [Citation](#citation-)

## About [↑](#about)

The code runs on pure python with the following dependencies: 
- `numpy`
- `scipy`
- `matplotlib`
- `pandas`
- `scikit-learn`
- `statsmodels`

## Install [↑](#install)

You can install spock using pip:

```python
pip install navicat_spock
```

Afterwards, you can call spock as:

```python
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
```python
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 
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 [↑](#examples)

The `manuscript_examples` subdirectory contains several examples used in the manuscript. Any of the data files can be run as:

```python
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 [↑](#citation)

Please cite the accompanying manuscript (to be submitted), which clarifies the details of volcano plot construction, and this repository through its DOI.


---





            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rlaplaza/spock",
    "name": "navicat-spock",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "compchem",
    "author": "rlaplaza, lcmd-epfl, ace-ethz, dcl-ethz",
    "author_email": "\"R. Laplaza\" <rlaplaza@duck.com>",
    "download_url": "https://files.pythonhosted.org/packages/57/ee/33d2f2ee2d7668454a5a02710d4b0fc141b36cb82475b47ae600d2d40db1/navicat_spock-0.0.4.tar.gz",
    "platform": null,
    "description": "spock: Volcano Plot Fitting Tool\n==============================================\n\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/rlaplaza/spock/HEAD?labpath=App.ipynb)\n[![DOI](https://zenodo.org/badge/764582532.svg)](https://zenodo.org/doi/10.5281/zenodo.12804607)\n\n![spock logo](./images/spock_logo.png)\n[![PyPI version](https://badge.fury.io/py/navicat-spock.svg)](https://badge.fury.io/py/navicat-spock)\n\n## Contents\n* [About](#about-)\n* [Install](#install-)\n* [Examples](#examples-)\n* [Citation](#citation-)\n\n## About [\u2191](#about)\n\nThe code runs on pure python with the following dependencies: \n- `numpy`\n- `scipy`\n- `matplotlib`\n- `pandas`\n- `scikit-learn`\n- `statsmodels`\n\n## Install [\u2191](#install)\n\nYou can install spock using pip:\n\n```python\npip install navicat_spock\n```\n\nAfterwards, you can call spock as:\n\n```python\npython -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]\n```\nor simply\n```python\nnavicat_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]\n```\n\nAlternatively, you can download the package and execute:\n\n```python \npython setup.py install\n```\n\nAfterwards, you can call spock as above. Options can be consulted using the `-h` flag in either case. The help menu is quite detailed. \n\nNote that the volcano plot generation function is directly exposed in case you want to use it in your code.\n\n## Examples [\u2191](#examples)\n\nThe `manuscript_examples` subdirectory contains several examples used in the manuscript. Any of the data files can be run as:\n\n```python\npython -m navicat_spock -i [FILENAME]\n```\n\nWe also provide a jupyter notebook where the plots are generated one by one.\n\nThe input of spock is a `pandas` compatible dataframe, which includes plain .csv and .xls files. \n\nRegarding 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.\n\nHigh 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. \n\nThe 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. \n\n\n## Citation [\u2191](#citation)\n\nPlease cite the accompanying manuscript (to be submitted), which clarifies the details of volcano plot construction, and this repository through its DOI.\n\n\n---\n\n\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Volcano Plot fitting tool",
    "version": "0.0.4",
    "project_urls": {
        "Homepage": "https://github.com/rlaplaza/spock"
    },
    "split_keywords": [
        "compchem"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "191280ae6bc1b7e47b19ab632c99265bdf0efd16f5676372d80ddcc687294a13",
                "md5": "f52ee97ab51077b0f9f3766ba8d1eb80",
                "sha256": "4fc6ba8f9e7b2871a8b89fff6d32fecc74387bd5bb20d869da70759d1bbc1178"
            },
            "downloads": -1,
            "filename": "navicat_spock-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f52ee97ab51077b0f9f3766ba8d1eb80",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 24923,
            "upload_time": "2025-01-07T18:57:29",
            "upload_time_iso_8601": "2025-01-07T18:57:29.089506Z",
            "url": "https://files.pythonhosted.org/packages/19/12/80ae6bc1b7e47b19ab632c99265bdf0efd16f5676372d80ddcc687294a13/navicat_spock-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "57ee33d2f2ee2d7668454a5a02710d4b0fc141b36cb82475b47ae600d2d40db1",
                "md5": "8cb4633972820f8179f8e1ab700c74b5",
                "sha256": "5f0aea4886d4b4c1872ff0adb24283ebd4cc5fd35ce9a6e2642d16579e1d1a12"
            },
            "downloads": -1,
            "filename": "navicat_spock-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "8cb4633972820f8179f8e1ab700c74b5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 24645,
            "upload_time": "2025-01-07T18:57:31",
            "upload_time_iso_8601": "2025-01-07T18:57:31.259206Z",
            "url": "https://files.pythonhosted.org/packages/57/ee/33d2f2ee2d7668454a5a02710d4b0fc141b36cb82475b47ae600d2d40db1/navicat_spock-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-07 18:57:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rlaplaza",
    "github_project": "spock",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "ipython",
            "specs": [
                [
                    "==",
                    "8.3.0"
                ]
            ]
        },
        {
            "name": "ipywidgets",
            "specs": [
                [
                    "==",
                    "8.0.2"
                ]
            ]
        },
        {
            "name": "markdown",
            "specs": [
                [
                    "==",
                    "3.3.4"
                ]
            ]
        },
        {
            "name": "matplotlib",
            "specs": [
                [
                    "==",
                    "3.7.5"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    "==",
                    "1.24.4"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    "==",
                    "2.0.3"
                ]
            ]
        },
        {
            "name": "scikit_learn",
            "specs": [
                [
                    "==",
                    "1.3.2"
                ]
            ]
        },
        {
            "name": "scipy",
            "specs": [
                [
                    "==",
                    "1.10.1"
                ]
            ]
        },
        {
            "name": "setuptools",
            "specs": [
                [
                    "==",
                    "68.1.2"
                ]
            ]
        },
        {
            "name": "statsmodels",
            "specs": [
                [
                    "==",
                    "0.14.1"
                ]
            ]
        }
    ],
    "lcname": "navicat-spock"
}
        
Elapsed time: 0.53620s