jeddinformatics


Namejeddinformatics JSON
Version 0.5.1 PyPI version JSON
download
home_page
SummaryConvert bioinformatics data to plots
upload_time2024-03-18 09:18:26
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords bioinformatics plotly
VCS
bugtrack_url
requirements pandas plotly kaleido loguru check-jsonschema jsonschema datamodel-code-generator twine build flake8 pytest black
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Jeddinformatics

## Initial setup
```bash
pip install -r requirements.txt
```
This will install the required packages

## Running on errything
```bash
python3 main.py <your data folder>
```

## TODO
- [ ] make sure non cancer is always first
- [ ] change boxes and whiskers to be a different colour
- [ ] remove shading

## Config files
```json
{
    "$schema": "https://raw.githubusercontent.com/wolffshots/jeddinformatics/main/src/jeddinformatics/schema.json",
    "mappings": {
        "normal": "NC",
        "Normal": "NC",
        "OV": "OV",
        "UCEC": "UCEC",
        "Ovarian Cancer": "OV",
        "Uterine Cancer": "UCEC",
        "Some title": "Translated title",
        "log2(TPM)": "log₂(TPM)"
    },
    "colors": {
        "NC": "blue",
        "OV": "green",
        "UCEC": "red",
        "box": "black",
        "plot_background_color": "lightgray",
        "paper_background_color": "white"
    },
    "precedence": ["NC", "normal", "Normal"],
    "jitter": 0.5,
    "line_width": 1.5,
    "point_size": 6,
    "plot_height": 540,
    "plot_width": 960
}
```

## Building and distributing
```bash
rm -fr dist && python3 -m build && python3 -m twine upload --repository testpypi dist/*
```

Rename all to OV (Ovarian canver) and UCEC (Uterine cancer) and make "normal"/"Normal" to NC (Non-cancer)

Data should look like:
```
│   
├───Gene Expression
│   └───ONCODB
│       ├───Ovarian Cancer
│       │   ├───CAS
│       │   │       data.txt
│       │   │       
│       │   ├───IPO5
│       │   │       data.txt
│       │   │       
│       │   ├───KPNA2
│       │   │       data.txt
│       │   │       
│       │   ├───KPNB1
│       │   │       data.txt
│       │   │       
│       │   ├───RAN
│       │   │       data.txt
│       │   │       
│       │   ├───TNPO1
│       │   │       data.txt
│       │   │       
│       │   └───XPO1
│       │           data.txt
│       │           
│       └───Uterine Cancer
│           ├───CAS
│           │       data.txt
│           │       
│           ├───IPO5
│           │       data.txt
│           │       
│           ├───KPNA2
│           │       data.txt
│           │       
│           ├───KPNB1
│           │       data.txt
│           │       
│           ├───RAN
│           │       data.txt
│           │       
│           ├───TNPO1
│           │       data.txt
│           │       
│           └───XPO1
│                   data.txt
│                   
└───Protein Expression
    └───UALCAN
        ├───Ovarian Cancer
        │   ├───CAS
        │   │       data.json
        │   │       
        │   ├───IPO5
        │   │       data.json
        │   │       
        │   ├───KPNA2
        │   │       data.json
        │   │       
        │   ├───KPNB1
        │   │       data.json
        │   │       
        │   ├───RAN
        │   │       data.json
        │   │       
        │   ├───TNPO1
        │   │       data.json
        │   │       
        │   └───XPO1
        │           data.json
        │           
        └───Uterine Cancer
            ├───CAS
            │       data.json
            │       
            ├───IPO5
            │       data.json
            │       
            ├───KPNA2
            │       data.json
            │       
            ├───KPNB1
            │       data.json
            │       
            ├───RAN
            │       data.json
            │       
            ├───TNPO1
            │       data.json
            │       
            └───XPO1
                    data.json
                    
```

So general form is:
```
 {gene or protein expression}
  └───{source database}
       └───{type of cancer}
            └───{gene or protein name}
                 └───{data.json or data.txt}
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "jeddinformatics",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "bioinformatics,plotly",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/73/89/dd6dcf4adeedbac2cf396fa13b8c668f9e573541b52cfb31d6ef6813e4a5/jeddinformatics-0.5.1.tar.gz",
    "platform": null,
    "description": "# Jeddinformatics\n\n## Initial setup\n```bash\npip install -r requirements.txt\n```\nThis will install the required packages\n\n## Running on errything\n```bash\npython3 main.py <your data folder>\n```\n\n## TODO\n- [ ] make sure non cancer is always first\n- [ ] change boxes and whiskers to be a different colour\n- [ ] remove shading\n\n## Config files\n```json\n{\n    \"$schema\": \"https://raw.githubusercontent.com/wolffshots/jeddinformatics/main/src/jeddinformatics/schema.json\",\n    \"mappings\": {\n        \"normal\": \"NC\",\n        \"Normal\": \"NC\",\n        \"OV\": \"OV\",\n        \"UCEC\": \"UCEC\",\n        \"Ovarian Cancer\": \"OV\",\n        \"Uterine Cancer\": \"UCEC\",\n        \"Some title\": \"Translated title\",\n        \"log2(TPM)\": \"log\u2082(TPM)\"\n    },\n    \"colors\": {\n        \"NC\": \"blue\",\n        \"OV\": \"green\",\n        \"UCEC\": \"red\",\n        \"box\": \"black\",\n        \"plot_background_color\": \"lightgray\",\n        \"paper_background_color\": \"white\"\n    },\n    \"precedence\": [\"NC\", \"normal\", \"Normal\"],\n    \"jitter\": 0.5,\n    \"line_width\": 1.5,\n    \"point_size\": 6,\n    \"plot_height\": 540,\n    \"plot_width\": 960\n}\n```\n\n## Building and distributing\n```bash\nrm -fr dist && python3 -m build && python3 -m twine upload --repository testpypi dist/*\n```\n\nRename all to OV (Ovarian canver) and UCEC (Uterine cancer) and make \"normal\"/\"Normal\" to NC (Non-cancer)\n\nData should look like:\n```\n\u2502   \n\u251c\u2500\u2500\u2500Gene Expression\n\u2502   \u2514\u2500\u2500\u2500ONCODB\n\u2502       \u251c\u2500\u2500\u2500Ovarian Cancer\n\u2502       \u2502   \u251c\u2500\u2500\u2500CAS\n\u2502       \u2502   \u2502       data.txt\n\u2502       \u2502   \u2502       \n\u2502       \u2502   \u251c\u2500\u2500\u2500IPO5\n\u2502       \u2502   \u2502       data.txt\n\u2502       \u2502   \u2502       \n\u2502       \u2502   \u251c\u2500\u2500\u2500KPNA2\n\u2502       \u2502   \u2502       data.txt\n\u2502       \u2502   \u2502       \n\u2502       \u2502   \u251c\u2500\u2500\u2500KPNB1\n\u2502       \u2502   \u2502       data.txt\n\u2502       \u2502   \u2502       \n\u2502       \u2502   \u251c\u2500\u2500\u2500RAN\n\u2502       \u2502   \u2502       data.txt\n\u2502       \u2502   \u2502       \n\u2502       \u2502   \u251c\u2500\u2500\u2500TNPO1\n\u2502       \u2502   \u2502       data.txt\n\u2502       \u2502   \u2502       \n\u2502       \u2502   \u2514\u2500\u2500\u2500XPO1\n\u2502       \u2502           data.txt\n\u2502       \u2502           \n\u2502       \u2514\u2500\u2500\u2500Uterine Cancer\n\u2502           \u251c\u2500\u2500\u2500CAS\n\u2502           \u2502       data.txt\n\u2502           \u2502       \n\u2502           \u251c\u2500\u2500\u2500IPO5\n\u2502           \u2502       data.txt\n\u2502           \u2502       \n\u2502           \u251c\u2500\u2500\u2500KPNA2\n\u2502           \u2502       data.txt\n\u2502           \u2502       \n\u2502           \u251c\u2500\u2500\u2500KPNB1\n\u2502           \u2502       data.txt\n\u2502           \u2502       \n\u2502           \u251c\u2500\u2500\u2500RAN\n\u2502           \u2502       data.txt\n\u2502           \u2502       \n\u2502           \u251c\u2500\u2500\u2500TNPO1\n\u2502           \u2502       data.txt\n\u2502           \u2502       \n\u2502           \u2514\u2500\u2500\u2500XPO1\n\u2502                   data.txt\n\u2502                   \n\u2514\u2500\u2500\u2500Protein Expression\n    \u2514\u2500\u2500\u2500UALCAN\n        \u251c\u2500\u2500\u2500Ovarian Cancer\n        \u2502   \u251c\u2500\u2500\u2500CAS\n        \u2502   \u2502       data.json\n        \u2502   \u2502       \n        \u2502   \u251c\u2500\u2500\u2500IPO5\n        \u2502   \u2502       data.json\n        \u2502   \u2502       \n        \u2502   \u251c\u2500\u2500\u2500KPNA2\n        \u2502   \u2502       data.json\n        \u2502   \u2502       \n        \u2502   \u251c\u2500\u2500\u2500KPNB1\n        \u2502   \u2502       data.json\n        \u2502   \u2502       \n        \u2502   \u251c\u2500\u2500\u2500RAN\n        \u2502   \u2502       data.json\n        \u2502   \u2502       \n        \u2502   \u251c\u2500\u2500\u2500TNPO1\n        \u2502   \u2502       data.json\n        \u2502   \u2502       \n        \u2502   \u2514\u2500\u2500\u2500XPO1\n        \u2502           data.json\n        \u2502           \n        \u2514\u2500\u2500\u2500Uterine Cancer\n            \u251c\u2500\u2500\u2500CAS\n            \u2502       data.json\n            \u2502       \n            \u251c\u2500\u2500\u2500IPO5\n            \u2502       data.json\n            \u2502       \n            \u251c\u2500\u2500\u2500KPNA2\n            \u2502       data.json\n            \u2502       \n            \u251c\u2500\u2500\u2500KPNB1\n            \u2502       data.json\n            \u2502       \n            \u251c\u2500\u2500\u2500RAN\n            \u2502       data.json\n            \u2502       \n            \u251c\u2500\u2500\u2500TNPO1\n            \u2502       data.json\n            \u2502       \n            \u2514\u2500\u2500\u2500XPO1\n                    data.json\n                    \n```\n\nSo general form is:\n```\n {gene or protein expression}\n  \u2514\u2500\u2500\u2500{source database}\n       \u2514\u2500\u2500\u2500{type of cancer}\n            \u2514\u2500\u2500\u2500{gene or protein name}\n                 \u2514\u2500\u2500\u2500{data.json or data.txt}\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Convert bioinformatics data to plots",
    "version": "0.5.1",
    "project_urls": {
        "Homepage": "https://github.com/wolffshots/jeddinformatics",
        "Issues": "https://github.com/wolffshots/jeddinformatics/issues"
    },
    "split_keywords": [
        "bioinformatics",
        "plotly"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "68b5c702d96f2480ac6c4c2a3d88700cebc04ea37de827bf4955205b655efbf5",
                "md5": "e9fd2749fc637f1c0ea42b72d2997620",
                "sha256": "d580070324d5dcd10d74410661ff59355e77ae2147cdb3b398a3af91f70c8f8a"
            },
            "downloads": -1,
            "filename": "jeddinformatics-0.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e9fd2749fc637f1c0ea42b72d2997620",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 10821,
            "upload_time": "2024-03-18T09:18:25",
            "upload_time_iso_8601": "2024-03-18T09:18:25.191113Z",
            "url": "https://files.pythonhosted.org/packages/68/b5/c702d96f2480ac6c4c2a3d88700cebc04ea37de827bf4955205b655efbf5/jeddinformatics-0.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7389dd6dcf4adeedbac2cf396fa13b8c668f9e573541b52cfb31d6ef6813e4a5",
                "md5": "3bc70545f7a9c165642b30ab12bd342a",
                "sha256": "2304cf91b1675ab979adbf7f3d820f9816037d5d1e96eb829e26ce821db63abd"
            },
            "downloads": -1,
            "filename": "jeddinformatics-0.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "3bc70545f7a9c165642b30ab12bd342a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 10155,
            "upload_time": "2024-03-18T09:18:26",
            "upload_time_iso_8601": "2024-03-18T09:18:26.815881Z",
            "url": "https://files.pythonhosted.org/packages/73/89/dd6dcf4adeedbac2cf396fa13b8c668f9e573541b52cfb31d6ef6813e4a5/jeddinformatics-0.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-18 09:18:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wolffshots",
    "github_project": "jeddinformatics",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "pandas",
            "specs": [
                [
                    ">=",
                    "2.2.1"
                ]
            ]
        },
        {
            "name": "plotly",
            "specs": [
                [
                    ">=",
                    "5.19.0"
                ]
            ]
        },
        {
            "name": "kaleido",
            "specs": [
                [
                    "==",
                    "0.2.1"
                ]
            ]
        },
        {
            "name": "loguru",
            "specs": [
                [
                    ">=",
                    "0.7.2"
                ]
            ]
        },
        {
            "name": "check-jsonschema",
            "specs": [
                [
                    ">=",
                    "0.28.0"
                ]
            ]
        },
        {
            "name": "jsonschema",
            "specs": [
                [
                    ">=",
                    "4.21.1"
                ]
            ]
        },
        {
            "name": "datamodel-code-generator",
            "specs": [
                [
                    ">=",
                    "0.25.4"
                ]
            ]
        },
        {
            "name": "twine",
            "specs": [
                [
                    ">=",
                    "5.0.0"
                ]
            ]
        },
        {
            "name": "build",
            "specs": [
                [
                    ">=",
                    "1.1.1"
                ]
            ]
        },
        {
            "name": "flake8",
            "specs": [
                [
                    ">=",
                    "7.0.0"
                ]
            ]
        },
        {
            "name": "pytest",
            "specs": [
                [
                    ">=",
                    "8.1.1"
                ]
            ]
        },
        {
            "name": "black",
            "specs": [
                [
                    ">=",
                    "24.2.0"
                ]
            ]
        }
    ],
    "lcname": "jeddinformatics"
}
        
Elapsed time: 0.20142s