mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-10 22:53:08 +00:00
Update usage.md
This commit is contained in:
parent
29978d83b9
commit
1eeb3b337a
1 changed files with 5 additions and 6 deletions
|
@ -474,19 +474,18 @@ You can follow Bracken [tutorial](https://ccb.jhu.edu/software/bracken/index.sht
|
||||||
|
|
||||||
#### Centrifuge custom database
|
#### Centrifuge custom database
|
||||||
|
|
||||||
Centrifuge allows the user to [build custom databases](https://ccb.jhu.edu/software/centrifuge/manual.shtml#custom-database). You need four file: a tab-separated file mapping sequence IDs to taxonomy IDs (`--conversion-table`), a \t|\t-separated file mapping taxonomy IDs to their parents and rank, up to the root of the tree (`--taxonomy-tree`), a '|'-separated file mapping taxonomy IDs to a name (`--name-table`) and the reference sequences.
|
Centrifuge allows the user to [build custom databases](https://ccb.jhu.edu/software/centrifuge/manual.shtml#custom-database). The user should download taxonomy files, make custom `seqid2taxid.map` and combine the fasta files together. You need four components: a tab-separated file mapping sequence IDs to taxonomy IDs (`--conversion-table`), a \t|\t-separated file mapping taxonomy IDs to their parents and rank, up to the root of the tree (`--taxonomy-tree`), a '|'-separated file mapping taxonomy IDs to a name (`--name-table`) and the reference sequences.
|
||||||
|
|
||||||
The user should download taxonomy files, make custom `seqid2taxid.map` and combine the fasta files together.
|
An example of custom `seqid2taxid.map`:
|
||||||
|
|
||||||
```bash
|
|
||||||
centrifuge-download -o taxonomy taxonomy
|
|
||||||
|
|
||||||
## custom seqid2taxid.map
|
|
||||||
NC_001133.9 4392
|
NC_001133.9 4392
|
||||||
NC_012920.1 9606
|
NC_012920.1 9606
|
||||||
NC_001134.8 4392
|
NC_001134.8 4392
|
||||||
NC_001135.5 4392
|
NC_001135.5 4392
|
||||||
|
|
||||||
|
```bash
|
||||||
|
centrifuge-download -o taxonomy taxonomy
|
||||||
|
|
||||||
cat *.{fa,fna} > input-sequences.fna
|
cat *.{fa,fna} > input-sequences.fna
|
||||||
centrifuge-build -p 4 --conversion-table seqid2taxid.map --taxonomy-tree taxonomy/nodes.dmp --name-table taxonomy/names.dmp input-sequences.fna taxprofiler_cf
|
centrifuge-build -p 4 --conversion-table seqid2taxid.map --taxonomy-tree taxonomy/nodes.dmp --name-table taxonomy/names.dmp input-sequences.fna taxprofiler_cf
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue