Skip to content

Commit

Permalink
Merge pull request #26 from metagenlab/docs
Browse files Browse the repository at this point in the history
Update readme and docs
  • Loading branch information
farchaab authored Dec 20, 2024
2 parents b02ba08 + d2d69cd commit 3b58fad
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 23 deletions.
27 changes: 16 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,46 @@
# assembly_finder
[![tests](https://github.com/metagenlab/assembly_finder/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/metagenlab/assembly_finder/actions/workflows/unit-tests.yml)
[![docs](https://github.com/metagenlab/assembly_finder/actions/workflows/build-docs.yml/badge.svg)](https://github.com/metagenlab/assembly_finder/actions/workflows/build-docs.yml)
[![docs](https://github.com/metagenlab/assembly_finder/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/metagenlab/assembly_finder/actions/workflows/docker-publish.yml)
[![docker](https://github.com/metagenlab/assembly_finder/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/metagenlab/assembly_finder/actions/workflows/docker-publish.yml)

[![](https://img.shields.io/static/v1?label=CLI&message=Snaketool&color=blueviolet)](https://github.com/beardymcjohnface/Snaketool)
[![snaketool](https://img.shields.io/static/v1?label=CLI&message=Snaketool&color=blueviolet)](https://github.com/beardymcjohnface/Snaketool)
[![license](https://img.shields.io/github/license/metagenlab/assembly_finder.svg)](https://github.com/metagenlab/assembly_finder/blob/main/LICENSE)
[![version](https://img.shields.io/conda/vn/bioconda/assembly_finder)](http://bioconda.github.io/recipes/assembly_finder/README.html)
[![downloads](https://img.shields.io/conda/dn/bioconda/assembly_finder)](https://anaconda.org/bioconda/assembly_finder)

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.13353494.svg)](https://zenodo.org/doi/10.5281/zenodo.13353494)

assembly_finder is a [Snakemake](https://github.com/snakemake/snakemake)-powered cli to download genomes with [NCBI datasets](https://github.com/ncbi/datasets).
`assembly_finder` is a [Snakemake](https://github.com/snakemake/snakemake)-powered cli, written in [Snaketool](https://github.com/beardymcjohnface/Snaketool), to download genomes with [NCBI datasets](https://github.com/ncbi/datasets).

## :zap: Quick start
### Installation
#### Mamba
#### [Conda](https://github.com/conda-forge/miniforge)

```sh
mamba create -n assembly_finder assembly_finder
conda create -n assembly_finder assembly_finder
```
#### Docker

> [!NOTE]
> Miniforge is the recommended conda-based distribution

#### [Apptainer](https://github.com/apptainer/apptainer)
```sh
docker pull ghcr.io/metagenlab/assembly_finder:latest
apptainer pull docker://ghcr.io/metagenlab/assembly_finder:latest
```

### Usage
#### Mamba
#### Conda
```sh
assembly_finder -i staphylococcus_aureus -nb 1
```
#### Docker
#### Apptainer
```sh
docker run ghcr.io/metagenlab/assembly_finder:latest \
apptainer run docker://ghcr.io/metagenlab/assembly_finder:latest \
assembly_finder -i staphylococcus_aureus -nb 1 --no-use-conda
```
> [!NOTE]
> set --no-use-conda when running via docker
> set --no-use-conda when running in a container
### Output

Expand Down
2 changes: 1 addition & 1 deletion docs/examples.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Download tables

Starting from version `0.8.0`, you can restrict outputs to `assembly_summary.tsv` and `taxonomy.tsv`
Starting from [v0.8.0](https://github.com/metagenlab/assembly_finder/releases/tag/v0.8.0), you can restrict outputs to `assembly_summary.tsv` and `taxonomy.tsv`

* Command

Expand Down
17 changes: 9 additions & 8 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
# assembly_finder
[![tests](https://github.com/metagenlab/assembly_finder/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/metagenlab/assembly_finder/actions/workflows/unit-tests.yml)
[![docs](https://github.com/metagenlab/assembly_finder/actions/workflows/build-docs.yml/badge.svg)](https://github.com/metagenlab/assembly_finder/actions/workflows/build-docs.yml)
[![docs](https://github.com/metagenlab/assembly_finder/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/metagenlab/assembly_finder/actions/workflows/docker-publish.yml)
[![docker](https://github.com/metagenlab/assembly_finder/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/metagenlab/assembly_finder/actions/workflows/docker-publish.yml)

[![](https://img.shields.io/static/v1?label=CLI&message=Snaketool&color=blueviolet)](https://github.com/beardymcjohnface/Snaketool)
[![snaketool](https://img.shields.io/static/v1?label=CLI&message=Snaketool&color=blueviolet)](https://github.com/beardymcjohnface/Snaketool)
[![license](https://img.shields.io/github/license/metagenlab/assembly_finder.svg)](https://github.com/metagenlab/assembly_finder/blob/main/LICENSE)
[![version](https://img.shields.io/conda/vn/bioconda/assembly_finder)](http://bioconda.github.io/recipes/assembly_finder/README.html)
[![downloads](https://img.shields.io/conda/dn/bioconda/assembly_finder)](https://anaconda.org/bioconda/assembly_finder)

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.13353494.svg)](https://zenodo.org/doi/10.5281/zenodo.13353494)

assembly_finder is a [Snakemake](https://github.com/snakemake/snakemake)-powered cli to download genomes with [NCBI datasets](https://github.com/ncbi/datasets).
`assembly_finder` is a [Snakemake](https://github.com/snakemake/snakemake)-powered cli, written in [Snaketool](https://github.com/beardymcjohnface/Snaketool), to download genomes with [NCBI datasets](https://github.com/ncbi/datasets).

## Installation

=== "mamba <small>(recommended)</small>"
=== "Conda <small>(recommended)</small>"

```sh
mamba create -n assembly_finder assembly_finder
conda create -n assembly_finder assembly_finder
```
!!! note
Requires a [Miniforge](https://github.com/conda-forge/miniforge) installation
=== "docker"

=== "Apptainer"

```sh
docker pull ghcr.io/metagenlab/assembly_finder:latest
apptainer pull docker://ghcr.io/metagenlab/assembly_finder:latest
```

!!! note
Expand All @@ -51,7 +52,7 @@ assembly_finder is a [Snakemake](https://github.com/snakemake/snakemake)-powered
=== "container"

```sh
docker run ghcr.io/metagenlab/assembly_finder:latest \
apptainer run docker://ghcr.io/metagenlab/assembly_finder:latest \
assembly_finder -i staphylococcus_aureus -nb 1 --no-use-conda
```

Expand Down
6 changes: 3 additions & 3 deletions docs/inputs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Inputs

Input can be either a string or a table, and queries can be either taxa or accession as shown in [NCBI datasets docs](https://www.ncbi.nlm.nih.gov/datasets/docs/v2/download-and-install).
Input can be either a string or a table, and queries can be either taxa or accessions as shown in [NCBI datasets docs](https://www.ncbi.nlm.nih.gov/datasets/docs/v2/download-and-install).

## Strings

Expand All @@ -17,8 +17,8 @@ Input can be either a string or a table, and queries can be either taxa or acces
=== "Accessions"

```sh
assembly_finder --accession -i GCF_003812505.1,\
GCF_000418345.1,GCF_000157115.2 -o accessions
assembly_finder --accession -i GCF_003812505.1,GCF_000418345.1,GCF_000157115.2 \
-o accessions
```
!!! note

Expand Down

0 comments on commit 3b58fad

Please sign in to comment.