Skip to content

Commit

Permalink
DOC Document query-ampsphere subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
luispedro committed Jun 27, 2024
1 parent 5b120cd commit cc4fdb1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,20 @@ name of the AMPs and the second with the number of reads mapped back to each pep
using the given reference. An example of this output using the example file can be found
at `test/abundances/expected.abundance.txt`.

### AMPSphere Querying

Macrel also supports querying the [AMPSphere database](https://ampsphere.big-data-biology.org/) (described in [Santos-Júnior et al., 2024](https://doi.org/10.1016/j.cell.2024.05.013)). To do so, use the `query-ampsphere` subcommand:

```bash
macrel query-ampsphere \
--fasta example_seqs/pep8.faa \
--output out_ampsphere
```

Note that this command requires internet access as it uses the AMPSphere API.

By default it performs exact matching, but you can also use MMSeqs2 to perform approximate matching by using the `--query-mode=mmseqs` (or `--query-mode=hmm` for HMMER).

### Community

Macrel is actively maintained to fix all issues and assimilate suggestions we
Expand Down
16 changes: 16 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,19 @@ This mode returns a table of abundances containing two columns, the first with t
name of the AMPs and the second with the number of reads mapped back to each peptide
using the given reference. An example of this output using the example file can be found
at `test/abundances/expected.abundance.txt`.

### AMPSphere Querying

Macrel also supports querying the [AMPSphere database](https://ampsphere.big-data-biology.org/) (described in [Santos-Júnior et al., 2024](https://doi.org/10.1016/j.cell.2024.05.013)). To do so, use the `query-ampsphere` subcommand:

```bash
macrel query-ampsphere \
--fasta example_seqs/pep8.faa \
--output out_ampsphere
```

Note that this command requires internet access as it uses the AMPSphere API. Future versions of macrel will allow you to use a local database.

By default it performs exact matching (equivalent to passing in `--query-mode=exact`), but you can also use MMSeqs2 to perform approximate matching by using the `--query-mode=mmseqs` (or `--query-mode=hmm` for HMMER).

Note that since these use the API, you do not need to have the AMPSphere database downloaded locally or installed MMSeqs2/HMMER.
2 changes: 1 addition & 1 deletion docs/whatsnew.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Unreleased

- Adds `query-ampsphere` command to query the AMPsphere database
- Adds `query-ampsphere` command to query the [AMPsphere database](https://ampsphere.big-data-biology.org/) (described in [Santos-Júnior et al., 2024](https://doi.org/10.1016/j.cell.2024.05.013)).

## Version 1.3.0

Expand Down

0 comments on commit cc4fdb1

Please sign in to comment.