volcanoPlot


NamevolcanoPlot JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/avivleemann/volcanoPlot
Summarycreating a volcano plot in python for the given data, and save it as a png file.
upload_time2023-11-20 15:33:38
maintainer
docs_urlNone
authoravivleemann
requires_python>=3.7
licenseApache Software License 2.0
keywords nbdev jupyter notebook python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # volcanoPlot

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

This file will become your README and also the index of your
documentation.

## Install

``` sh
pip install volcanoPlot
```

## How to use

# Example

``` markdown
Description:
RSV or RS virus, short for respiratory syncytial virus, is a single-stranded RNA virus belonging to the pneumovirus genus of the virus family.
Symptoms are usually mild, similar to a cold, but can cause very serious illness in infants.

Dataset:
We prepared a total of 8 RNA-Seq data from acute and chronic phases in nasal samples of 4 infants
The dataset was taken from Kaggle using the following API command:
kaggle datasets download -d yoshifumimiya/rsv-rnaseq-count
```

``` python
import pandas as pd
from pathlib import Path
df = pd.read_csv(Path.cwd() / 'res_example.csv')
df.head()
```

<div>
<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }
&#10;    .dataframe tbody tr th {
        vertical-align: top;
    }
&#10;    .dataframe thead th {
        text-align: right;
    }
</style>

|     | gene_id   | baseMean    | log2FC    | lfcSE    | stat      | p_value  | p_adj    | log10p   | sig   | regulated        |
|-----|-----------|-------------|-----------|----------|-----------|----------|----------|----------|-------|------------------|
| 0   | WASH7P    | 4.587857    | 2.458706  | 1.116766 | 2.201630  | 0.027691 | 0.202064 | 1.557654 | True  | lfc2 and p_value |
| 1   | LOC729737 | 122.155762  | 1.342039  | 0.716822 | 1.872207  | 0.061178 | 0.309724 | 1.213405 | False | non-sig          |
| 2   | TGIF1     | 1400.037490 | -0.099168 | 0.142399 | -0.696411 | 0.486171 | 0.796121 | 0.313211 | False | non-sig          |
| 3   | PRDX6     | 4794.111981 | -0.008120 | 0.200802 | -0.040440 | 0.967742 | 0.991057 | 0.014240 | False | non-sig          |
| 4   | CIC       | 1581.916300 | 0.053769  | 0.177791 | 0.302430  | 0.762324 | 0.925608 | 0.117860 | False | non-sig          |

</div>

``` python
from volcanoPlot.volcano import *
plot(df=df,x='log2FC', y ='log10p')
```

![](index_files/figure-commonmark/cell-3-output-1.png)

``` python
df
```

<div>
<style scoped>
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }
&#10;    .dataframe tbody tr th {
        vertical-align: top;
    }
&#10;    .dataframe thead th {
        text-align: right;
    }
</style>

|       | gene_id   | baseMean    | log2FC    | lfcSE    | stat      | p_value  | p_adj    | log10p   | sig   | regulated        |
|-------|-----------|-------------|-----------|----------|-----------|----------|----------|----------|-------|------------------|
| 0     | WASH7P    | 4.587857    | 2.458706  | 1.116766 | 2.201630  | 0.027691 | 0.202064 | 1.557654 | True  | lfc2 and p_value |
| 1     | LOC729737 | 122.155762  | 1.342039  | 0.716822 | 1.872207  | 0.061178 | 0.309724 | 1.213405 | False | non-sig          |
| 2     | TGIF1     | 1400.037490 | -0.099168 | 0.142399 | -0.696411 | 0.486171 | 0.796121 | 0.313211 | False | non-sig          |
| 3     | PRDX6     | 4794.111981 | -0.008120 | 0.200802 | -0.040440 | 0.967742 | 0.991057 | 0.014240 | False | non-sig          |
| 4     | CIC       | 1581.916300 | 0.053769  | 0.177791 | 0.302430  | 0.762324 | 0.925608 | 0.117860 | False | non-sig          |
| ...   | ...       | ...         | ...       | ...      | ...       | ...      | ...      | ...      | ...   | ...              |
| 19202 | PAK1      | 2658.104961 | -0.314881 | 0.129934 | -2.423387 | 0.015377 | 0.143495 | 1.813142 | False | p_value          |
| 19203 | PRKD3     | 722.336078  | 0.175513  | 0.290260 | 0.604675  | 0.545395 | 0.827693 | 0.263289 | False | non-sig          |
| 19204 | MLC1      | 10.608723   | -0.444787 | 0.810487 | -0.548790 | 0.583150 | 0.846594 | 0.234220 | False | non-sig          |
| 19205 | ZBTB41    | 508.407691  | -0.547094 | 0.350267 | -1.561933 | 0.118304 | 0.427640 | 0.927002 | False | non-sig          |
| 19206 | TMEM181   | 1506.912048 | -0.395167 | 0.160578 | -2.460906 | 0.013859 | 0.135332 | 1.858278 | False | p_value          |

<p>19207 rows × 10 columns</p>
</div>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/avivleemann/volcanoPlot",
    "name": "volcanoPlot",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "nbdev jupyter notebook python",
    "author": "avivleemann",
    "author_email": "avivleemann@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/90/ac/882df4591667d1dd57aecba9f3b3b444ef1761de317ec51f192327b2ffc7/volcanoPlot-0.0.2.tar.gz",
    "platform": null,
    "description": "# volcanoPlot\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\nThis file will become your README and also the index of your\ndocumentation.\n\n## Install\n\n``` sh\npip install volcanoPlot\n```\n\n## How to use\n\n# Example\n\n``` markdown\nDescription:\nRSV or RS virus, short for respiratory syncytial virus, is a single-stranded RNA virus belonging to the pneumovirus genus of the virus family.\nSymptoms are usually mild, similar to a cold, but can cause very serious illness in infants.\n\nDataset:\nWe prepared a total of 8 RNA-Seq data from acute and chronic phases in nasal samples of 4 infants\nThe dataset was taken from Kaggle using the following API command:\nkaggle datasets download -d yoshifumimiya/rsv-rnaseq-count\n```\n\n``` python\nimport pandas as pd\nfrom pathlib import Path\ndf = pd.read_csv(Path.cwd() / 'res_example.csv')\ndf.head()\n```\n\n<div>\n<style scoped>\n    .dataframe tbody tr th:only-of-type {\n        vertical-align: middle;\n    }\n&#10;    .dataframe tbody tr th {\n        vertical-align: top;\n    }\n&#10;    .dataframe thead th {\n        text-align: right;\n    }\n</style>\n\n|     | gene_id   | baseMean    | log2FC    | lfcSE    | stat      | p_value  | p_adj    | log10p   | sig   | regulated        |\n|-----|-----------|-------------|-----------|----------|-----------|----------|----------|----------|-------|------------------|\n| 0   | WASH7P    | 4.587857    | 2.458706  | 1.116766 | 2.201630  | 0.027691 | 0.202064 | 1.557654 | True  | lfc2 and p_value |\n| 1   | LOC729737 | 122.155762  | 1.342039  | 0.716822 | 1.872207  | 0.061178 | 0.309724 | 1.213405 | False | non-sig          |\n| 2   | TGIF1     | 1400.037490 | -0.099168 | 0.142399 | -0.696411 | 0.486171 | 0.796121 | 0.313211 | False | non-sig          |\n| 3   | PRDX6     | 4794.111981 | -0.008120 | 0.200802 | -0.040440 | 0.967742 | 0.991057 | 0.014240 | False | non-sig          |\n| 4   | CIC       | 1581.916300 | 0.053769  | 0.177791 | 0.302430  | 0.762324 | 0.925608 | 0.117860 | False | non-sig          |\n\n</div>\n\n``` python\nfrom volcanoPlot.volcano import *\nplot(df=df,x='log2FC', y ='log10p')\n```\n\n![](index_files/figure-commonmark/cell-3-output-1.png)\n\n``` python\ndf\n```\n\n<div>\n<style scoped>\n    .dataframe tbody tr th:only-of-type {\n        vertical-align: middle;\n    }\n&#10;    .dataframe tbody tr th {\n        vertical-align: top;\n    }\n&#10;    .dataframe thead th {\n        text-align: right;\n    }\n</style>\n\n|       | gene_id   | baseMean    | log2FC    | lfcSE    | stat      | p_value  | p_adj    | log10p   | sig   | regulated        |\n|-------|-----------|-------------|-----------|----------|-----------|----------|----------|----------|-------|------------------|\n| 0     | WASH7P    | 4.587857    | 2.458706  | 1.116766 | 2.201630  | 0.027691 | 0.202064 | 1.557654 | True  | lfc2 and p_value |\n| 1     | LOC729737 | 122.155762  | 1.342039  | 0.716822 | 1.872207  | 0.061178 | 0.309724 | 1.213405 | False | non-sig          |\n| 2     | TGIF1     | 1400.037490 | -0.099168 | 0.142399 | -0.696411 | 0.486171 | 0.796121 | 0.313211 | False | non-sig          |\n| 3     | PRDX6     | 4794.111981 | -0.008120 | 0.200802 | -0.040440 | 0.967742 | 0.991057 | 0.014240 | False | non-sig          |\n| 4     | CIC       | 1581.916300 | 0.053769  | 0.177791 | 0.302430  | 0.762324 | 0.925608 | 0.117860 | False | non-sig          |\n| ...   | ...       | ...         | ...       | ...      | ...       | ...      | ...      | ...      | ...   | ...              |\n| 19202 | PAK1      | 2658.104961 | -0.314881 | 0.129934 | -2.423387 | 0.015377 | 0.143495 | 1.813142 | False | p_value          |\n| 19203 | PRKD3     | 722.336078  | 0.175513  | 0.290260 | 0.604675  | 0.545395 | 0.827693 | 0.263289 | False | non-sig          |\n| 19204 | MLC1      | 10.608723   | -0.444787 | 0.810487 | -0.548790 | 0.583150 | 0.846594 | 0.234220 | False | non-sig          |\n| 19205 | ZBTB41    | 508.407691  | -0.547094 | 0.350267 | -1.561933 | 0.118304 | 0.427640 | 0.927002 | False | non-sig          |\n| 19206 | TMEM181   | 1506.912048 | -0.395167 | 0.160578 | -2.460906 | 0.013859 | 0.135332 | 1.858278 | False | p_value          |\n\n<p>19207 rows \u00d7 10 columns</p>\n</div>\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "creating a volcano plot in python for the given data, and save it as a png file.",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/avivleemann/volcanoPlot"
    },
    "split_keywords": [
        "nbdev",
        "jupyter",
        "notebook",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "50399f857d0c439f1a07f10a10eca6b8a90666d0d09703395a21cf77862e8c53",
                "md5": "d0d3736531af560883f35d7d43f7fe3e",
                "sha256": "ab72e0a2e94d491d8e6d4f139a396042d0c39a01cc6c9527d6720c89fa541338"
            },
            "downloads": -1,
            "filename": "volcanoPlot-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d0d3736531af560883f35d7d43f7fe3e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 9069,
            "upload_time": "2023-11-20T15:33:36",
            "upload_time_iso_8601": "2023-11-20T15:33:36.588002Z",
            "url": "https://files.pythonhosted.org/packages/50/39/9f857d0c439f1a07f10a10eca6b8a90666d0d09703395a21cf77862e8c53/volcanoPlot-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "90ac882df4591667d1dd57aecba9f3b3b444ef1761de317ec51f192327b2ffc7",
                "md5": "b33f56084bf4e4d481dbf1ae031ab43c",
                "sha256": "22744d8aa6cb39707389740139cb48ed05704df7dc0dfe3bdf30076a8d93fc1e"
            },
            "downloads": -1,
            "filename": "volcanoPlot-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "b33f56084bf4e4d481dbf1ae031ab43c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 9971,
            "upload_time": "2023-11-20T15:33:38",
            "upload_time_iso_8601": "2023-11-20T15:33:38.501122Z",
            "url": "https://files.pythonhosted.org/packages/90/ac/882df4591667d1dd57aecba9f3b3b444ef1761de317ec51f192327b2ffc7/volcanoPlot-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-20 15:33:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "avivleemann",
    "github_project": "volcanoPlot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "volcanoplot"
}
        
Elapsed time: 0.68002s