Skip to main content

Convert bioinformatics data to plots

Project description

Jeddinformatics

Initial setup

pip install -r requirements.txt

This will install the required packages

Running on errything

python3 main.py <your data folder>

Config files

{
    "$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<sub>2</sub>(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

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}

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

jeddinformatics-0.7.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

jeddinformatics-0.7.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file jeddinformatics-0.7.0.tar.gz.

File metadata

  • Download URL: jeddinformatics-0.7.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for jeddinformatics-0.7.0.tar.gz
Algorithm Hash digest
SHA256 652cee35039c13109543ec6507dc1e8275dc4eaacf523f32b61bf039a6b6d327
MD5 d2b45c964dedbeb61178c04f39dc317f
BLAKE2b-256 c6863a52a5bcc4f71c1a44c051719aadeb1ee454acf72ea6305285f8ea1970dd

See more details on using hashes here.

File details

Details for the file jeddinformatics-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jeddinformatics-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a06ab968eed61c0ccb878289d36177565c4559f2b583658f20d81858791f0e9
MD5 fd850c78a7b7e82941cfa0c7c708de30
BLAKE2b-256 46a2c0c88ac3717bc84370d7197de6e95dcc1f3f46bf77f8a2ed4bbe84fd276a

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