ChloroScan: A metagenomic workflow to recover chloroplast genomes
This workflow is designed to recover chloroplast genomes from metagenomic datasets.
Installation
Install a working Conda distribution (for example, Miniforge): https://github.com/conda-forge/miniforge. Run Snakemake 7.32 with ``–conda-frontend conda``; downgrading Conda or Mamba to historical versions is not required.
To install the workflow, use pip3. The Python package supports Python 3.9 or later; Python 3.10 on Linux x86_64 is recommended for the tested workflow setup.
pip3 install chloroscan
This installs the latest published version of ChloroScan. Check the command-line interface with chloroscan --help and chloroscan run --help. The complete workflow additionally requires Conda rule environments and explicitly supplied CAT database and taxonomy directories (--cat-database and --cat-taxonomy). Detailed workflow instructions can be found at: https://andyargueasae.github.io/chloroscan/index.html. The website also contains Chinese version of the documentation with identical contents.
Machine/OS Requirements
ChloroScan is only tested on Linux (x86_64), running on IOS system is not recommended. ChloroScan can be installed on servers with hpc clusters and it is recommended to use a GPU to accelerate its running.
Note: Through testing, current version of chloroscan cannot support NVIDIA H-100 GPU, due to cuda version incompatibilities. We will work on updating it to allow better performances.
Configuration databases
Before running ChloroScan, some packages and datasets need to be installed to run CAT taxonomy prediction properly. ChloroScan downloads its Binny marker gene database into OUTPUT_DIR/resources/A2K_database during workflow execution. The output directory must be writable and have sufficient free space. To download our curated Uniref90-algae plastid protein database, use the link: https://doi.org/10.26188/27990278.
To avoid authentication issues, we recommend using the pyfigshare command-line tool to download. The information of this tool can be found at: https://pypi.org/project/pyfigshare/. * Python > 3.0 is required to download pyfigshare.
Before downloading the files, set up your own figshare account and add an api token to the file ~/.figshare/token in your server.
Then run:
figshare download -o CAT_db.tar.gz 27990278
Note: The tar.gz format of CAT database’s size is 47GB, and nearly 85GB after unzipped, please ensure you have enough disk storage. Meanwhile, the space to setup the conda environment also requires 15 GB of disk.
Sample data to try
To try ChloroScan, I recommend downloading our synthetic metagenome data via the command:
figshare download -o simulated_metagenomes.tar.gz 28748540
There are also some real metagenome datasets (modified to keep them lightweight) available at: https://figshare.unimelb.edu.au/articles/dataset/ChloroScan_test_data/30218614.
To download:
figshare download -o real_test_samples.tar.gz 30218614
Credit
ChloroScan is developed by:
Yuhao Tong 童禹皓 (University of Melbourne)
With Yuhao Tong the primary developer, if you want to contact us, please email to:
yuhtong@student.unimelb.edu.au
Citation
Tong, Y., V. R.Marcelino, R.Turnbull, and H.Verbruggen. 2026. “ChloroScan: Recovering Plastid Genome Bins From Metagenomic Data.” Molecular Ecology Resources26, no. 3: e70143. https://doi.org/10.1111/1755-0998.70143.
下载
请先安装 Conda(例如 Miniforge:https://github.com/conda-forge/miniforge)。使用 Snakemake 7.32 时指定 ``–conda-frontend conda``,无需降级到旧版 Conda/Mamba。
要安装工作流,请使用 pip3。Python 包支持 3.9 及以上版本;目前建议在 Linux x86_64 上使用 Python 3.10。
python -m pip install chloroscan
详细的工作流说明可以在以下链接找到:https://andyargueasae.github.io/chloroscan/index.html。 该网站还包含中文版本的文档,内容完全相同。
机器/操作系统要求
ChloroScan 仅在 Linux (x86_64) 上测试,建议不要在 IOS 系统上运行。 ChloroScan 可以安装在具有 hpc 集群的服务器上,建议使用 GPU 来加速运行。
注意:通过测试,当前版本的 chloroscan 无法支持 NVIDIA H-100 GPU,因为 cuda 版本不兼容。我们将努力更新它以允许更好的性能。
配置数据库
在运行 ChloroScan 之前,需要安装一些软件包和数据集以正确运行。
运行工作流时,ChloroScan 会将 Binny 标记基因数据库下载到 OUTPUT_DIR/resources/A2K_database,因此输出目录需要足够空间和写入权限。运行命令还必须提供 --cat-database 和 --cat-taxonomy。 要下载我们经过整理的 Uniref90-algae plastid 蛋白质数据库,请使用以下链接:https://doi.org/10.26188/27990278。
为了避免认证问题,我们建议使用 pyfigshare 命令行工具进行下载。有关此工具的信息可以在以下链接找到:https://pypi.org/project/pyfigshare/。 * Python > 3.0 是下载 pyfigshare 的必要条件。
在下载文件之前,设置您自己的 figshare 账户,并将 api 密匙添加到你服务器的文件 ~/.figshare/token 中。 然后运行:
figshare download -o CAT_db.tar.gz 27990278
注意:CAT 数据库的 tar.gz 格式大小为 47GB,解压后约为 85GB,请确保您有足够的磁盘存储空间。同时,设置 conda 环境的空间也需要 15 GB 的磁盘。
试用样本数据
要试用 ChloroScan,我建议通过以下命令下载我们的合成宏基因组数据:
figshare download -o simulated_metagenomes.tar.gz 28748540
还有一些真实的宏基因组数据集(经过修改以保持其不占用太多磁盘空间,但原始数据信息并未抹除)可在以下链接找到:https://figshare.unimelb.edu.au/articles/dataset/ChloroScan_test_data/30218614。
用户可通过如下方式下载:
figshare download -o real_test_samples.tar.gz 30218614
参考文献引用
Tong, Y., V. R.Marcelino, R.Turnbull, and H.Verbruggen. 2026. “ChloroScan: Recovering Plastid Genome Bins From Metagenomic Data.” Molecular Ecology Resources26, no. 3: e70143. https://doi.org/10.1111/1755-0998.70143.
联系方式
请联系我们:
yuhtong@student.unimelb.edu.au
Metadata
Release files for chloroscan 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chloroscan-0.4.2.tar.gz | 101.4 kB | Without provenance | Details for chloroscan-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chloroscan-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for chloroscan-0.4.2-py3-none-any.whl |
Total release size: 230.7 kB
Release files / chloroscan-0.4.2.tar.gz
| Download URL | chloroscan-0.4.2.tar.gz |
|---|---|
| Size | 101.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
522f0cf9cc05ccb98506e1bb2b5e458609c15ad9d37c070f5f1492d59cebc88c
|
|
BLAKE2b-256 checksum How to use checksums |
1dae9e96370150d1c849ed86270e3bbab28f845986244fc0d0f187c4d817f811
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Release files / chloroscan-0.4.2-py3-none-any.whl
| Download URL | chloroscan-0.4.2-py3-none-any.whl |
|---|---|
| Size | 129.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e093c5f270150dc0cab19f0f2118e2120269c15d1b44a35459736404c45094ab
|
|
BLAKE2b-256 checksum How to use checksums |
78fd022292d5a991eb5453550d771d2f3f085f9afb9241e2ee1918e159ac152f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Security for chloroscan 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.