conformine


Nameconformine JSON
Version 0.0.1b14 PyPI version JSON
download
home_page
SummaryConforMine, a predictor of conformational variability from amino acid sequence
upload_time2023-04-13 09:55:39
maintainerJose Gavalda-Garcia, Adrian Diaz, Wim Vranken
docs_urlNone
authorJose Gavalda-Garcia
requires_python>=3.6, <3.10
license
keywords b2btools biology bioinformatics bio-informatics fasta proteins protein-conformation conformational-variability
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">
  <a href="bio2byte.be/b2btools" target="_blank" ref="noreferrer noopener">
  <img src="https://pbs.twimg.com/profile_images/1247824923546079232/B9b_Yg7n_400x400.jpg" width="224px"/>
  </a>
  <br/>
  ConforMine
</h1>
<p align="center">This package provides predictions on protein Conformational Variability from their amino acid 
sequence. This is a standalone package and will be later incorporated in <a href="https://pypi.org/project/b2bTools/" target="_top">b2BTools</a>.</p>


## ⚡️Quick start

First of all, download and install the package:

```console
$ pip install conformine
```

Use this example as an entry point:

```python
from conformine import Conformine
import matplotlib.pyplot as plt
conf = Conformine("/path/to/example.fasta")
conf.predict()
predictions = conf.get_all_predictions()

ConVa_pred = predictions['SEQ001']['ConVa']

plt.plot(range(len(ConVa_pred)), ConVa_pred, label = "ConVa")

plt.legend()
plt.xlabel('aa_position')
plt.ylabel('pred_values')
plt.show()
```



### 🧭 Basic flow
This section will explain you in details the script mentioned inside the Quick start section.

1) Import the `Conformine` class from the `conformine` package:

```python
from conformine import Conformine
```

2) Instantiate an object by passing the path to the input file in FASTA format:

```python
conf = Conformine("/path/to/example.fasta")
```

3) Run the predictions:

```python
conf.predict()
```

4) Get the prediction values after running the predictor for a specific sequence identifier:

```python
predictions = conf.get_all_predictions()
```

**⚠️ Important note:** The method `get_all_predictions` will return a dictionary with the following structure:

```python
{
  "SEQUENCE_ID_000": {
    "id": "SEQUENCE_ID_000",
    "seq": "the input sequence 0",
    "result001": [0.001, 0.002, ..., 0.00],
    "result002": [0.001, 0.002, ..., 0.00],
    "...": [...],
    "resultN": [0.001, 0.002, ..., 0.00]
  },
  "SEQUENCE_ID_001": {
    "id": "SEQUENCE_ID_001",
    "seq": "the input sequence 1",
    "result001": [0.001, 0.002, ..., 0.00],
    "result002": [0.001, 0.002, ..., 0.00],
    "...": [...],
    "resultN": [0.001, 0.002, ..., 0.00]
  },
  "...": { ... },
  "SEQUENCE_ID_N": {
    "id": "SEQUENCE_ID_N",
    "seq": "the input sequence N",
    "result001": [0.001, 0.002, ..., 0.00],
    "result002": [0.001, 0.002, ..., 0.00],
    "...": [...],
    "resultN": [0.001, 0.002, ..., 0.00]
  },
}
```

To know all the available result keys, please review this table:

| Output key               | Output values (type) | Output values (example)       |
|--------------------------|----------------------|-------------------------------|
| `"id"`                   | [Char]               | "SEQUENCE_ID_000"             |
| `"seq"`                  | [Char]               | `['M', 'A', ..., 'S', 'T']`   |
| `"ConVa"`                | [Float]              | `[0.1992, 0.12, ..., 0.0020]` |
| `"core_helix"`           | [Float]              | `[0.1996, 0.12, ..., 0.0019]` |
| `"core_sheet"`           | [Float]              | `[0.1989, 0.08, ..., 0.0031]` |
| `"other_conformation"`   | [Float]              | `[0.0420, 0.69, ..., 0.5566]` |
| `"surr_helix"`           | [Float]              | `[0.6666, 0.13, ..., 0.9954]` |
| `"surr_sheet"`           | [Float]              | `[0.1954, 0.06, ..., 0.0007]` |
| `"Predicted_ShiftCrypt"` | [Float]              | `[0.6786, 0.71, ..., 0.7219]` |

5) You are ready to use the sequence and predictions to work with them. Here is an example of plotting the data.

```python
import matplotlib.pyplot as plt
ConVa_pred = predictions['SEQ001']['ConVa']

plt.plot(range(len(ConVa_pred)), ConVa_pred, label = "ConVa")

plt.legend()
plt.xlabel('aa_position')
plt.ylabel('pred_values')
plt.show()
```
## 📖 How to cite
If you use this package or data in this package, please cite:

| Predictor  | Cite                                                                                                                                                                                                             | Digital Object Identifier (DOI) |
|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------|
| ConforMine | _Jose Gavalda-Garcia, Joel Roca-Martinez, Gabriele Orlando, Daniele Raimondi and Wim Vranken._ ConVa and ConforMine: A novel metric and estimator for protein conformational variability.<br/>**In preparation** | TBA                             |

## 📝 Terms of use

1. The Bio2Byte group aims to promote open science by providing freely available online services, database and software relating to the life sciences, with focus on proteins. Where we present scientific data generated by others we impose no additional restriction on the use of the contributed data than those provided by the data owner.
1. The Bio2Byte group expects attribution (e.g. in publications, services or products) for any of its online services, databases or software in accordance with good scientific practice. The expected attribution will be indicated in 'How to cite' sections (or equivalent).
1. The Bio2Byte group is not liable to you or third parties claiming through you, for any loss or damage.
1. Any questions or comments concerning these Terms of Use can be addressed to [Wim Vranken](mailto:wim.vranken@vub.be).

<hr/>
<p align="center">© Wim Vranken, Bio2Byte group, VUB</p>
<p align="center"><a href="https://bio2byte.be/b2btools/" target="_blank" ref="noreferrer noopener">https://bio2byte.be/b2btools/</a></p>

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "conformine",
    "maintainer": "Jose Gavalda-Garcia, Adrian Diaz, Wim Vranken",
    "docs_url": null,
    "requires_python": ">=3.6, <3.10",
    "maintainer_email": "jose.gavalda.garcia@vub.be, adrian.diaz@vub.be, wim.vranken@vub.be",
    "keywords": "b2bTools,biology,bioinformatics,bio-informatics,fasta,proteins,protein-conformation,conformational-variability",
    "author": "Jose Gavalda-Garcia",
    "author_email": "jose.gavalda.garcia@vub.be",
    "download_url": "https://files.pythonhosted.org/packages/52/c9/bd9bf6526c2ed8079c01cb994491086fcca49807ed048c78e93b6dada786/conformine-0.0.1b14.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\n  <a href=\"bio2byte.be/b2btools\" target=\"_blank\" ref=\"noreferrer noopener\">\n  <img src=\"https://pbs.twimg.com/profile_images/1247824923546079232/B9b_Yg7n_400x400.jpg\" width=\"224px\"/>\n  </a>\n  <br/>\n  ConforMine\n</h1>\n<p align=\"center\">This package provides predictions on protein Conformational Variability from their amino acid \nsequence. This is a standalone package and will be later incorporated in <a href=\"https://pypi.org/project/b2bTools/\" target=\"_top\">b2BTools</a>.</p>\n\n\n## \u26a1\ufe0fQuick start\n\nFirst of all, download and install the package:\n\n```console\n$ pip install conformine\n```\n\nUse this example as an entry point:\n\n```python\nfrom conformine import Conformine\nimport matplotlib.pyplot as plt\nconf = Conformine(\"/path/to/example.fasta\")\nconf.predict()\npredictions = conf.get_all_predictions()\n\nConVa_pred = predictions['SEQ001']['ConVa']\n\nplt.plot(range(len(ConVa_pred)), ConVa_pred, label = \"ConVa\")\n\nplt.legend()\nplt.xlabel('aa_position')\nplt.ylabel('pred_values')\nplt.show()\n```\n\n\n\n### \ud83e\udded Basic flow\nThis section will explain you in details the script mentioned inside the Quick start section.\n\n1) Import the `Conformine` class from the `conformine` package:\n\n```python\nfrom conformine import Conformine\n```\n\n2) Instantiate an object by passing the path to the input file in FASTA format:\n\n```python\nconf = Conformine(\"/path/to/example.fasta\")\n```\n\n3) Run the predictions:\n\n```python\nconf.predict()\n```\n\n4) Get the prediction values after running the predictor for a specific sequence identifier:\n\n```python\npredictions = conf.get_all_predictions()\n```\n\n**\u26a0\ufe0f Important note:** The method `get_all_predictions` will return a dictionary with the following structure:\n\n```python\n{\n  \"SEQUENCE_ID_000\": {\n    \"id\": \"SEQUENCE_ID_000\",\n    \"seq\": \"the input sequence 0\",\n    \"result001\": [0.001, 0.002, ..., 0.00],\n    \"result002\": [0.001, 0.002, ..., 0.00],\n    \"...\": [...],\n    \"resultN\": [0.001, 0.002, ..., 0.00]\n  },\n  \"SEQUENCE_ID_001\": {\n    \"id\": \"SEQUENCE_ID_001\",\n    \"seq\": \"the input sequence 1\",\n    \"result001\": [0.001, 0.002, ..., 0.00],\n    \"result002\": [0.001, 0.002, ..., 0.00],\n    \"...\": [...],\n    \"resultN\": [0.001, 0.002, ..., 0.00]\n  },\n  \"...\": { ... },\n  \"SEQUENCE_ID_N\": {\n    \"id\": \"SEQUENCE_ID_N\",\n    \"seq\": \"the input sequence N\",\n    \"result001\": [0.001, 0.002, ..., 0.00],\n    \"result002\": [0.001, 0.002, ..., 0.00],\n    \"...\": [...],\n    \"resultN\": [0.001, 0.002, ..., 0.00]\n  },\n}\n```\n\nTo know all the available result keys, please review this table:\n\n| Output key               | Output values (type) | Output values (example)       |\n|--------------------------|----------------------|-------------------------------|\n| `\"id\"`                   | [Char]               | \"SEQUENCE_ID_000\"             |\n| `\"seq\"`                  | [Char]               | `['M', 'A', ..., 'S', 'T']`   |\n| `\"ConVa\"`                | [Float]              | `[0.1992, 0.12, ..., 0.0020]` |\n| `\"core_helix\"`           | [Float]              | `[0.1996, 0.12, ..., 0.0019]` |\n| `\"core_sheet\"`           | [Float]              | `[0.1989, 0.08, ..., 0.0031]` |\n| `\"other_conformation\"`   | [Float]              | `[0.0420, 0.69, ..., 0.5566]` |\n| `\"surr_helix\"`           | [Float]              | `[0.6666, 0.13, ..., 0.9954]` |\n| `\"surr_sheet\"`           | [Float]              | `[0.1954, 0.06, ..., 0.0007]` |\n| `\"Predicted_ShiftCrypt\"` | [Float]              | `[0.6786, 0.71, ..., 0.7219]` |\n\n5) You are ready to use the sequence and predictions to work with them. Here is an example of plotting the data.\n\n```python\nimport matplotlib.pyplot as plt\nConVa_pred = predictions['SEQ001']['ConVa']\n\nplt.plot(range(len(ConVa_pred)), ConVa_pred, label = \"ConVa\")\n\nplt.legend()\nplt.xlabel('aa_position')\nplt.ylabel('pred_values')\nplt.show()\n```\n## \ud83d\udcd6 How to cite\nIf you use this package or data in this package, please cite:\n\n| Predictor  | Cite                                                                                                                                                                                                             | Digital Object Identifier (DOI) |\n|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------|\n| ConforMine | _Jose Gavalda-Garcia, Joel Roca-Martinez, Gabriele Orlando, Daniele Raimondi and Wim Vranken._ ConVa and ConforMine: A novel metric and estimator for protein conformational variability.<br/>**In preparation** | TBA                             |\n\n## \ud83d\udcdd Terms of use\n\n1. The Bio2Byte group aims to promote open science by providing freely available online services, database and software relating to the life sciences, with focus on proteins. Where we present scientific data generated by others we impose no additional restriction on the use of the contributed data than those provided by the data owner.\n1. The Bio2Byte group expects attribution (e.g. in publications, services or products) for any of its online services, databases or software in accordance with good scientific practice. The expected attribution will be indicated in 'How to cite' sections (or equivalent).\n1. The Bio2Byte group is not liable to you or third parties claiming through you, for any loss or damage.\n1. Any questions or comments concerning these Terms of Use can be addressed to [Wim Vranken](mailto:wim.vranken@vub.be).\n\n<hr/>\n<p align=\"center\">\u00a9 Wim Vranken, Bio2Byte group, VUB</p>\n<p align=\"center\"><a href=\"https://bio2byte.be/b2btools/\" target=\"_blank\" ref=\"noreferrer noopener\">https://bio2byte.be/b2btools/</a></p>\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "ConforMine, a predictor of conformational variability from amino acid sequence",
    "version": "0.0.1b14",
    "split_keywords": [
        "b2btools",
        "biology",
        "bioinformatics",
        "bio-informatics",
        "fasta",
        "proteins",
        "protein-conformation",
        "conformational-variability"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "52c9bd9bf6526c2ed8079c01cb994491086fcca49807ed048c78e93b6dada786",
                "md5": "4ea7148fab46100aa59ed5724e4cea79",
                "sha256": "157944108ddf8795b36f7809bd7e737016585196831949f4cc980ad911d6df5a"
            },
            "downloads": -1,
            "filename": "conformine-0.0.1b14.tar.gz",
            "has_sig": false,
            "md5_digest": "4ea7148fab46100aa59ed5724e4cea79",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6, <3.10",
            "size": 2190048,
            "upload_time": "2023-04-13T09:55:39",
            "upload_time_iso_8601": "2023-04-13T09:55:39.889556Z",
            "url": "https://files.pythonhosted.org/packages/52/c9/bd9bf6526c2ed8079c01cb994491086fcca49807ed048c78e93b6dada786/conformine-0.0.1b14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-13 09:55:39",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "conformine"
}
        
Elapsed time: 0.06285s