Name | AlphaFoldFetch JSON |
Version |
0.0.1
JSON |
| download |
home_page | None |
Summary | A tool for downloading AlphaFold structures using UniProt IDs or FASTA files |
upload_time | 2024-10-28 03:21:40 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT |
keywords |
alphafold
download
fasta
fetch
file
get
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# AlphaFoldFetch
A tool for downloading AlphaFold structures using UniProt IDs or FASTA files
## What is AlphaFoldFetch?
AlphaFoldFetch is a command-line tool for downloading protein structural predictions from DeepMind's AlphaFold using UniProt IDs or FASTA files as input.
This tool is handy for getting structures for proteomes that are unavailable on AlphaFold's bulk download page.
### How does it work?
AlphaFoldFetch uses UniProt IDs and UniProt-formatted FASTA files to query AlphaFold's API and download structures within your terminal! You can specify the protein structure file type (PDB or CIF), whether your files are zipped or not (.gz), the AlphaFold model to access (v1–4), and download parameters to optimize large queries (>10,000 entries).
## Install
```bash
pip install alphafoldfetch
```
## Usage
```bash
affetch [OPTIONS] UNIPROT...
```
|Arguments |Details |
|:----------|:-----------------------------|
|`UNIPROT` |UniProt ID(s) or FASTA file(s)|
|Options |Details |
|:------------------|:------------------------------------------------|
|`--output`, `-o` |Output directory |
|`--file-type`, `-f`|File type(s), `p` = .pdb, `c` = .cif, `z` = *.gz |
|`--model`, `-m` |AlphaFold model version, `1`, `2`, `3`, `4` |
|`--n-sync` |Syncronized number of downloads, Default = `50` |
|`--n-save` |Concurrent number of file writes, Default = `500`|
### Examples
Single AlphaFold structure
```bash
affetch P11388
```
Multiple AlphaFold structures
```bash
affetch P11388 Q01320 P41516
```
Structures from a single UniProt FASTA file
```bash
affetch UP000005640_9606.fasta
```
Multiple UniProt FASTA files
```bash
affetch UP000007305_4577.fasta UP000005640_9606.fasta UP000000625_83333.fasta
```
*First obtain these FASTA files from UniProt*
Multiple custom FASTA files
```bash
affetch plant_pgks.fasta mammalian_pgks.fasta bacterial_pgks.fasta
```
*Input files must be in the UniProt FASTA file format*
Unzipped PDB file
```bash
affetch -f p P11388
```
*Default will dowload zipped PDB and CIF files for all entries*
Redirect output to a directory
```bash
mkdir human_top2a && affetch -o ./human_top2a P11388
```
Don't know the UniProt ID? Use [getSequence] and pipe into `affetch`
```bash
getseq human top2a, mouse top2a, rat top2a | affetch -
```
*Pipe input arguments must be indicated with a dash `-`*
## Development TODOs
These are some of the much need improvements that I plan to implement in the next release
* Add unit tests
Annoying bug in `Typer` that breaks path completion with the `-o` option: [Typer Issue 951](https://github.com/fastapi/typer/issues/951)
### Credits
Inspired by [getSequence], created with [The Hatchlor] template.
[getSequence]: https://github.com/alexholehouse/getSequence
[The Hatchlor]: https://github.com/florianwilhelm/the-hatchlor
Raw data
{
"_id": null,
"home_page": null,
"name": "AlphaFoldFetch",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "alphafold, download, fasta, fetch, file, get",
"author": null,
"author_email": "Edgar Manriquez-Sandoval <emanriq1@jhu.edu>",
"download_url": "https://files.pythonhosted.org/packages/52/12/59c68d36c0fcb02b7cbb0638934ecabcaa6057a6840a3b6ab78e3c271d9d/alphafoldfetch-0.0.1.tar.gz",
"platform": null,
"description": "# AlphaFoldFetch\n\nA tool for downloading AlphaFold structures using UniProt IDs or FASTA files\n\n## What is AlphaFoldFetch?\n\nAlphaFoldFetch is a command-line tool for downloading protein structural predictions from DeepMind's AlphaFold using UniProt IDs or FASTA files as input.\n\nThis tool is handy for getting structures for proteomes that are unavailable on AlphaFold's bulk download page.\n\n### How does it work?\n\nAlphaFoldFetch uses UniProt IDs and UniProt-formatted FASTA files to query AlphaFold's API and download structures within your terminal! You can specify the protein structure file type (PDB or CIF), whether your files are zipped or not (.gz), the AlphaFold model to access (v1\u20134), and download parameters to optimize large queries (>10,000 entries).\n\n## Install\n\n```bash\npip install alphafoldfetch\n```\n\n## Usage\n\n```bash\naffetch [OPTIONS] UNIPROT...\n```\n\n|Arguments |Details |\n|:----------|:-----------------------------|\n|`UNIPROT` |UniProt ID(s) or FASTA file(s)|\n\n|Options |Details |\n|:------------------|:------------------------------------------------|\n|`--output`, `-o` |Output directory |\n|`--file-type`, `-f`|File type(s), `p` = .pdb, `c` = .cif, `z` = *.gz |\n|`--model`, `-m` |AlphaFold model version, `1`, `2`, `3`, `4` |\n|`--n-sync` |Syncronized number of downloads, Default = `50` |\n|`--n-save` |Concurrent number of file writes, Default = `500`|\n\n### Examples\n\nSingle AlphaFold structure\n```bash\naffetch P11388\n```\n\nMultiple AlphaFold structures\n```bash\naffetch P11388 Q01320 P41516\n```\n\nStructures from a single UniProt FASTA file\n```bash\naffetch UP000005640_9606.fasta\n```\n\nMultiple UniProt FASTA files\n```bash\naffetch UP000007305_4577.fasta UP000005640_9606.fasta UP000000625_83333.fasta\n```\n*First obtain these FASTA files from UniProt*\n\nMultiple custom FASTA files\n```bash\naffetch plant_pgks.fasta mammalian_pgks.fasta bacterial_pgks.fasta\n```\n*Input files must be in the UniProt FASTA file format*\n\nUnzipped PDB file\n```bash\naffetch -f p P11388\n```\n*Default will dowload zipped PDB and CIF files for all entries*\n\nRedirect output to a directory\n```bash\nmkdir human_top2a && affetch -o ./human_top2a P11388\n```\n\nDon't know the UniProt ID? Use [getSequence] and pipe into `affetch`\n```bash\ngetseq human top2a, mouse top2a, rat top2a | affetch -\n```\n*Pipe input arguments must be indicated with a dash `-`*\n\n## Development TODOs\n\nThese are some of the much need improvements that I plan to implement in the next release\n\n* Add unit tests\n\nAnnoying bug in `Typer` that breaks path completion with the `-o` option: [Typer Issue 951](https://github.com/fastapi/typer/issues/951)\n\n### Credits\n\nInspired by [getSequence], created with [The Hatchlor] template.\n\n[getSequence]: https://github.com/alexholehouse/getSequence\n[The Hatchlor]: https://github.com/florianwilhelm/the-hatchlor",
"bugtrack_url": null,
"license": "MIT",
"summary": "A tool for downloading AlphaFold structures using UniProt IDs or FASTA files",
"version": "0.0.1",
"project_urls": {
"Documentation": "https://github.com/mansanlab/alphafoldfetch",
"Source": "https://github.com/mansanlab/alphafoldfetch"
},
"split_keywords": [
"alphafold",
" download",
" fasta",
" fetch",
" file",
" get"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8ac6c1ffadc517f369826f0689d1d18b25fd096cbed15ddf8998059de621eac7",
"md5": "dc41984be532555fd9019e74da7b66fb",
"sha256": "8ac427e4b21140d4266bc938b9c3104df1dd0d7bbd592d61792311117dc044e6"
},
"downloads": -1,
"filename": "alphafoldfetch-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "dc41984be532555fd9019e74da7b66fb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 6662,
"upload_time": "2024-10-28T03:21:38",
"upload_time_iso_8601": "2024-10-28T03:21:38.436526Z",
"url": "https://files.pythonhosted.org/packages/8a/c6/c1ffadc517f369826f0689d1d18b25fd096cbed15ddf8998059de621eac7/alphafoldfetch-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "521259c68d36c0fcb02b7cbb0638934ecabcaa6057a6840a3b6ab78e3c271d9d",
"md5": "faa2ae51a1344d49eaa36066a44df924",
"sha256": "b56d350dac049e249c7d861c2382095058eb7ea8e86e44776ccbd7561084f4b8"
},
"downloads": -1,
"filename": "alphafoldfetch-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "faa2ae51a1344d49eaa36066a44df924",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 8271,
"upload_time": "2024-10-28T03:21:40",
"upload_time_iso_8601": "2024-10-28T03:21:40.219648Z",
"url": "https://files.pythonhosted.org/packages/52/12/59c68d36c0fcb02b7cbb0638934ecabcaa6057a6840a3b6ab78e3c271d9d/alphafoldfetch-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-28 03:21:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mansanlab",
"github_project": "alphafoldfetch",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "alphafoldfetch"
}