JAMS-Fetch (Joint Automated Multi-source Sequence Fetcher) is a Python package. It automates the retrieval of sequence and structure data from major bioinformatics databases using a unified, user-friendly interface.
Project description
🧬 JAMS-Fetch
JAMS-Fetch (Joint Automated Multi-source Sequence Fetcher) is a Python package. It automates the retrieval of sequence and structure data from major bioinformatics databases using a unified, user-friendly interface.
Supported databases:
- NCBI Nucleotide
- NCBI Genome Assembly
- UniProt
- RCSB PDB
Whether you're working with DNA sequences, protein sequences, or molecular structures, JAMS-Fetch simplifies the download process and saves files in standard formats.
🚀 Features
- 🧠 Automatically detects the correct source based on ID format.
- ⚙️ Unified API for batch FASTA sequence downloading.
- 🔍 Separate functions for advanced, source-specific queries.
- 💾 Saves sequences and structures in appropriate formats (FASTA, PDB, CIF).
- 📁 Organizes downloads into user-defined directories.
📦 Installation
pip install jamsfetch
🚀 Quick Start
Use fetch_fasta() to automatically download sequences or structure files from multiple sources with a single list of IDs:
from jamsfetch import fetch_fasta
ids = ["P12345", "NM_001200.2", "1A2B", "GCF_000001405.39"]
fetch_fasta(
id_list=ids,
output_dir="downloads/",
assembly_data_type="genomic" # or "protein"
)
🔧 Advanced Usage
Use the following source-specific functions when you need greater control over what and how data is downloaded.
⛁ Uniprot
⛁ NCBI Nucleotide
⛁ NCBI Genome Assembly
Download genomic or protein data for specific organisms or id(s):
from jamsfetch.utils import get_assembly
get_assembly(
organism="Homo sapiens", # specify an organism name
ids=None, # or use specific assembly IDs
bioproject=None, # or BioProject
output_dir="genomes/", # specify output directory
data_type="genomic", # "genomic" or "protein"
n=1, # if organism was passed, number of genome/proteoms to download
unzip=True,
reference_only=True # Only reference genomes if True
)
⛁ PDB
Upcoming capabilities:
- Testing - Staszek
- UniProta to PDB mapping (https://github.com/iriziotis/Uniprot-PDB-mapper)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jamsfetch-0.0.2.tar.gz.
File metadata
- Download URL: jamsfetch-0.0.2.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5e5e88eed74ca6c4cb1ea177b379cc7ad78293e92221623f962fc5ffdbfad57
|
|
| MD5 |
f6ed0240bec32627a403cc144890d713
|
|
| BLAKE2b-256 |
4d3008723d7bc35adce178734f0c9332a868af9cefc32cb0db9240e04e0662b2
|
File details
Details for the file jamsfetch-0.0.2-py3-none-any.whl.
File metadata
- Download URL: jamsfetch-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d207c46eb2cce940840e7612155281f10ac02d0acc2c56742f398b188961e2bc
|
|
| MD5 |
aadd85705fd3b5b914f97db35eecae0e
|
|
| BLAKE2b-256 |
d5ba0b70af5d7a6a9d660b970664b31ac7e794b8a2588e0bc7cc0d2fbc40fb21
|