Skip to content

Add melon databasesheet and update README #1608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: taxprofiler
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,37 @@ sylph sketch *

This generates a database file `database.syldb`. If you want to use a custom database name, you can use `sylph sketch * -o custom_name.syldb`

#### melon

Create minimal dataset of Bacteroides fragilis as test database for melon.

1. Get all the accessions from the melon DB for Bacteroides fragilis
- `tail -n +2 metadata.tsv | cut -f1 > accessions.txt`
- Adjust metadata.tsv `head -n1 metadata.tsv > fragmini/metadata.tsv && grep -f frag_mini.txt metadata.tsv >> fragmini/metadata.tsv`
2. Fetch all sequences from the database .fa files
- `seqkit grep -r -f fragilis_ids.txt database/nucl.bacteria.*.fa -o database/combined_fragilis.fa`

```bash
for f in nucl.*.fa; do echo "Processing $f..."; seqkit grep -r -f ../fragilis_db/fragilis_ids.txt "$f" -o "fragdb/$f"; done
```

3. From those extracted .fa files extract the annotation string
- `grep -o ":[+-] .*" combined_fragilis.fa | cut -d' ' -f2- > fragilis_annotations.txt`
4. Fetch those sequences from the protein .fa file for the diamond index
- `seqkit grep -n -f database/fragilis_annotations.txt database/prot.fa -o database/fragilis_prot.fa`
5. Create the test_db

```bash
diamond makedb --in fragilis_db/fragilis_prot.fa --db fragilis_db/fragilis_prot --quiet
ls minimi/nucl.*.fa | sort | xargs -P 16 -I {} bash -c '
filename=${1%.fa*};
filename=${filename##*/};
minimap2 -x map-ont -d minimi/$filename.mmi ${1} 2> /dev/null;
echo "Indexed <minimi/$filename.fa>.";' - {}
```

Note: Each gene is in a seperate fa file. Check if all are needed and fetch for each gene the one for Bacteroides fragilis

## Taxprofiler AWS Full Test specific-information

### FASTQ
Expand Down
1 change: 1 addition & 0 deletions database_v1.3.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ metaphlan,metaphlan3,--mpa3,short,https://raw.githubusercontent.com/nf-core/test
metaphlan,metaphlan4,,short,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/delete_me/metaphlan4_database.tar.gz
kmcp,db1,;-m 0,short,https://github.com/nf-core/test-datasets/raw/taxprofiler/data/database/kmcp/test-db-kmcp.tar.gz
sylph,db1,-m 60,short;long,https://github.com/nf-core/test-datasets/raw/taxprofiler/data/database/sylph/testdb-sylph.syldb
melon,db2,,long,https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/delete_me/melon_db.tar.gz