# FAS - Feature Architecture Similarity
[![PyPI version](https://badge.fury.io/py/greedyFAS.svg)](https://badge.fury.io/py/greedyFAS)
[![GPLv3-license](https://anaconda.org/bionf/hamstr/badges/license.svg)](https://www.gnu.org/licenses/gpl-3.0.de.html)
![Github Build](https://github.com/BIONF/FAS/workflows/build/badge.svg)
FAS is a new release of the original [FACT](https://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-11-417) algorithm. It calculates the so called FAS-score which is a measure of how similar the feature architectures of two proteins are. This is done by combining the Multiplicity Score (MS) and the Positional Score (PS) from FACT. Unlike the original FACT, FAS can resolve feature architectures that have overlapping features by searching for the best overlap-free path. This can be done either extensively or by using the priority mode, a greedy approach. FAS also allows for more options in the weighting of features.
# Table of Contents
* [Installation](#installation)
* [Usage](#usage)
* [Annotate protein features](#annotate-protein-features)
* [Compare protein feature architectures](#compare-protein-feature-architectures)
* [Additional Information](#additional-information)
* [How-To Cite](#how-to-cite)
* [Contributors](#contributors)
* [Contact](#contact)
# Installation
FAS is provided as a python package and compatible with **Python3**.
You can install FAS with pip:
```
python3 -m pip install greedyFAS
```
(\*) In case you **do not have admin rights**, and don't use package systems like Anaconda to manage environments you need to use the **--user** option (not recommended):
```
python3 -m pip install --user greedyFAS
```
and then add the following line to the end of your `.bashrc` or `.bash_profile` file, restart the current terminal to apply the change:
```
export PATH=$HOME/.local/bin:$PATH
```
# Usage
## Download and install annotation tools
Before using FAS, some annotation tools and databases need to be installed. FAS' standard databases/annotation tools are: [PFAM](https://www.ebi.ac.uk/interpro/download/Pfam/), [SMART](https://software.embl-em.de/software/18), [fLPS](http://biology.mcgill.ca/faculty/harrison/flps.html), [SEG](https://mendel.imp.ac.at/METHODS/seg.server.html), [COILS](https://mybiosoftware.com/coils-2-2-prediction-coiled-coil-regions-proteins.html), [THMHH 2.0c](http://www.cbs.dtu.dk/services/TMHMM/) and [SignalP 4.1g](http://www.cbs.dtu.dk/services/SignalP/). To get these tools and make a configuration file for FAS, please use the `setupFAS` function:
```
fas.setup -t /directory/where/you/want/to/save/annotation/tools
```
Inside the output directory you will find a file called *annoTools.txt* that contains all installed annotation tools. If you wish to discard any of them from the annotation process, you can just remove the unneeded tools from that file.
*Please read our [wiki page of setupFAS](https://github.com/BIONF/FAS/wiki/setupFAS) for other use-cases, such as how to use your old annotation tools with the new FAS, etc.*
__*NOTE: we provide compiled code only for PFAM, COILS and SEG. fLPS will be automatically downloaded and installed. For SMART, you need to download it from [EMBLEM](https://software.embl-em.de/software/18) and give the path to `fas.setup`. For TMHMM and SignalP, you can decide if you want to include those two tools to the annotation step (recommended) or ignore them. For using TMHMM version 2.0c and SignalP version 4.1g, you need to request a license from the authors at https://services.healthtech.dtu.dk, and save the downloaded files in the same directory. FAS will do the rest for you ;-)*__
__*NOTE2: SignalP 5.0b is not supported yet!!!*__
We suggest you test the annotation tools by running this command:
```
fas.doAnno -i test_annofas.fa -o test_output
```
*`test_annofas.fa` is a demo multiple fasta file, which is saved in the installed greedyFAS directory.*
## Perform feature annotation
If you only want to annotate your protein sequences without calculating the FAS scores, you can use the `doAnno` function.
```
fas.doAnno --fasta your_proteins.fa --outPath /annotation/path/
```
The annotation output (`your_proteins.json` by default) will be saved in `/annotation/path/`.
Alternatively, you can do the annotation using [InterProScan](https://www.ebi.ac.uk/interpro/about/interproscan/) and use the function `parseAnno` to convert the InterProScan's *tsv* output into *json format* for using with FAS.
```
fas.parseAnno -i INPUT.tsv -o /annotation/path/INPUT.json -t <tool_name> -f <feature columns> ...
```
Please check the usage of `parseAnno` for more info (using `fas.parseAnno -h`).
## Compare protein feature architectures
The main purpose of FAS is to calculate the similarity score between 2 given proteins (or two list of proteins). This can be done using the `run` function.
```
fas.run -s seed.fa -q query.fa -a /annotation/path/ -o /output/path/
```
If the annotations of *seed* and *query* protein(s) already exist in `/annotation/path/` (*seed.json* and *query.json*, respectively), `run` will use these annotations for calculating the FAS scores. Otherwise, it will first annotate the proteins and then compare the feature architectures of those two protein sets.
# Additional Information
A thorough guide to all FAS commands and options can be found at [our WIKI page](https://github.com/BIONF/FAS/wiki).
# How-To Cite
Julian Dosch, Holger Bergmann, Vinh Tran, Ingo Ebersberger, FAS: assessing the similarity between proteins using multi-layered feature architectures, Bioinformatics, Volume 39, Issue 5, May 2023, btad226, https://doi.org/10.1093/bioinformatics/btad226
# Contributors
- [Ingo Ebersberger](https://github.com/ebersber)
- [Julian Dosch](https://github.com/JuRuDo)
- [Holger Bergmann](https://github.com/holgerbgm)
- [Vinh Tran](https://github.com/trvinh)
# Contact
Julian Dosch dosch@bio.uni-frankfurt.de
Ingo Ebersberger ebersberger@bio.uni-frankfurt.de
Raw data
{
"_id": null,
"home_page": "https://github.com/BIONF/FAS",
"name": "greedyFAS",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7.0",
"maintainer_email": null,
"keywords": null,
"author": "Julian Dosch",
"author_email": "Dosch@bio.uni-frankfurt.de",
"download_url": "https://files.pythonhosted.org/packages/9a/3e/06c78ada6fa3bd9a9c48fc64c1c16458f6af9ec1048a156ce3910327a907/greedyfas-1.18.13.tar.gz",
"platform": null,
"description": "# FAS - Feature Architecture Similarity\n[![PyPI version](https://badge.fury.io/py/greedyFAS.svg)](https://badge.fury.io/py/greedyFAS)\n[![GPLv3-license](https://anaconda.org/bionf/hamstr/badges/license.svg)](https://www.gnu.org/licenses/gpl-3.0.de.html)\n![Github Build](https://github.com/BIONF/FAS/workflows/build/badge.svg)\n\nFAS is a new release of the original [FACT](https://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-11-417) algorithm. It calculates the so called FAS-score which is a measure of how similar the feature architectures of two proteins are. This is done by combining the Multiplicity Score (MS) and the Positional Score (PS) from FACT. Unlike the original FACT, FAS can resolve feature architectures that have overlapping features by searching for the best overlap-free path. This can be done either extensively or by using the priority mode, a greedy approach. FAS also allows for more options in the weighting of features.\n\n# Table of Contents\n* [Installation](#installation)\n* [Usage](#usage)\n * [Annotate protein features](#annotate-protein-features)\n * [Compare protein feature architectures](#compare-protein-feature-architectures)\n* [Additional Information](#additional-information)\n* [How-To Cite](#how-to-cite)\n* [Contributors](#contributors)\n* [Contact](#contact)\n\n# Installation\n\nFAS is provided as a python package and compatible with **Python3**.\n\nYou can install FAS with pip:\n```\npython3 -m pip install greedyFAS\n```\n\n(\\*) In case you **do not have admin rights**, and don't use package systems like Anaconda to manage environments you need to use the **--user** option (not recommended):\n```\npython3 -m pip install --user greedyFAS\n```\n\nand then add the following line to the end of your `.bashrc` or `.bash_profile` file, restart the current terminal to apply the change:\n```\nexport PATH=$HOME/.local/bin:$PATH\n```\n\n# Usage\n\n## Download and install annotation tools\nBefore using FAS, some annotation tools and databases need to be installed. FAS' standard databases/annotation tools are: [PFAM](https://www.ebi.ac.uk/interpro/download/Pfam/), [SMART](https://software.embl-em.de/software/18), [fLPS](http://biology.mcgill.ca/faculty/harrison/flps.html), [SEG](https://mendel.imp.ac.at/METHODS/seg.server.html), [COILS](https://mybiosoftware.com/coils-2-2-prediction-coiled-coil-regions-proteins.html), [THMHH 2.0c](http://www.cbs.dtu.dk/services/TMHMM/) and [SignalP 4.1g](http://www.cbs.dtu.dk/services/SignalP/). To get these tools and make a configuration file for FAS, please use the `setupFAS` function:\n```\nfas.setup -t /directory/where/you/want/to/save/annotation/tools\n```\nInside the output directory you will find a file called *annoTools.txt* that contains all installed annotation tools. If you wish to discard any of them from the annotation process, you can just remove the unneeded tools from that file.\n\n*Please read our [wiki page of setupFAS](https://github.com/BIONF/FAS/wiki/setupFAS) for other use-cases, such as how to use your old annotation tools with the new FAS, etc.*\n\n__*NOTE: we provide compiled code only for PFAM, COILS and SEG. fLPS will be automatically downloaded and installed. For SMART, you need to download it from [EMBLEM](https://software.embl-em.de/software/18) and give the path to `fas.setup`. For TMHMM and SignalP, you can decide if you want to include those two tools to the annotation step (recommended) or ignore them. For using TMHMM version 2.0c and SignalP version 4.1g, you need to request a license from the authors at https://services.healthtech.dtu.dk, and save the downloaded files in the same directory. FAS will do the rest for you ;-)*__\n\n__*NOTE2: SignalP 5.0b is not supported yet!!!*__\n\nWe suggest you test the annotation tools by running this command:\n```\nfas.doAnno -i test_annofas.fa -o test_output\n```\n*`test_annofas.fa` is a demo multiple fasta file, which is saved in the installed greedyFAS directory.*\n\n## Perform feature annotation\n\nIf you only want to annotate your protein sequences without calculating the FAS scores, you can use the `doAnno` function.\n\n```\nfas.doAnno --fasta your_proteins.fa --outPath /annotation/path/\n```\n\nThe annotation output (`your_proteins.json` by default) will be saved in `/annotation/path/`.\n\nAlternatively, you can do the annotation using [InterProScan](https://www.ebi.ac.uk/interpro/about/interproscan/) and use the function `parseAnno` to convert the InterProScan's *tsv* output into *json format* for using with FAS.\n\n```\nfas.parseAnno -i INPUT.tsv -o /annotation/path/INPUT.json -t <tool_name> -f <feature columns> ...\n```\n\nPlease check the usage of `parseAnno` for more info (using `fas.parseAnno -h`).\n\n## Compare protein feature architectures\n\nThe main purpose of FAS is to calculate the similarity score between 2 given proteins (or two list of proteins). This can be done using the `run` function.\n\n```\nfas.run -s seed.fa -q query.fa -a /annotation/path/ -o /output/path/\n```\nIf the annotations of *seed* and *query* protein(s) already exist in `/annotation/path/` (*seed.json* and *query.json*, respectively), `run` will use these annotations for calculating the FAS scores. Otherwise, it will first annotate the proteins and then compare the feature architectures of those two protein sets.\n\n# Additional Information\n\nA thorough guide to all FAS commands and options can be found at [our WIKI page](https://github.com/BIONF/FAS/wiki).\n\n# How-To Cite\n\nJulian Dosch, Holger Bergmann, Vinh Tran, Ingo Ebersberger, FAS: assessing the similarity between proteins using multi-layered feature architectures, Bioinformatics, Volume 39, Issue 5, May 2023, btad226, https://doi.org/10.1093/bioinformatics/btad226\n\n# Contributors\n- [Ingo Ebersberger](https://github.com/ebersber)\n- [Julian Dosch](https://github.com/JuRuDo)\n- [Holger Bergmann](https://github.com/holgerbgm)\n- [Vinh Tran](https://github.com/trvinh)\n\n# Contact\nJulian Dosch dosch@bio.uni-frankfurt.de\n\nIngo Ebersberger ebersberger@bio.uni-frankfurt.de\n",
"bugtrack_url": null,
"license": "GPL-3.0",
"summary": "A tool to compare protein feature architectures",
"version": "1.18.13",
"project_urls": {
"Homepage": "https://github.com/BIONF/FAS"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "50258ffc26a430ed3e7c681541b2389b694ea6ed38e1a2299b6ed5e2e454797f",
"md5": "6ac5abf68ae8a473f6d1d1cea4e82a4b",
"sha256": "a45a00e5e0fd44eb181c13dd3d30f4b833ab000957652c4abd516455eaa3dde7"
},
"downloads": -1,
"filename": "greedyFAS-1.18.13-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6ac5abf68ae8a473f6d1d1cea4e82a4b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7.0",
"size": 116908,
"upload_time": "2024-09-05T11:43:03",
"upload_time_iso_8601": "2024-09-05T11:43:03.112034Z",
"url": "https://files.pythonhosted.org/packages/50/25/8ffc26a430ed3e7c681541b2389b694ea6ed38e1a2299b6ed5e2e454797f/greedyFAS-1.18.13-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9a3e06c78ada6fa3bd9a9c48fc64c1c16458f6af9ec1048a156ce3910327a907",
"md5": "33484d9eefdd9c10fa33b75107504f35",
"sha256": "c7a4317050594eea5d15f3afdac3c2b03526582e373be586801c3604ecb22564"
},
"downloads": -1,
"filename": "greedyfas-1.18.13.tar.gz",
"has_sig": false,
"md5_digest": "33484d9eefdd9c10fa33b75107504f35",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7.0",
"size": 86006,
"upload_time": "2024-09-05T11:43:04",
"upload_time_iso_8601": "2024-09-05T11:43:04.682696Z",
"url": "https://files.pythonhosted.org/packages/9a/3e/06c78ada6fa3bd9a9c48fc64c1c16458f6af9ec1048a156ce3910327a907/greedyfas-1.18.13.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-05 11:43:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "BIONF",
"github_project": "FAS",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"lcname": "greedyfas"
}