diamond_blast
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| diamond_blast [2017/08/22 13:46] – created cgeb2001 | diamond_blast [2017/09/11 06:12] (current) – 129.173.94.20 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | **A quick guide to Diamond by Tommy Harding**\\ | ||
| + | \\ | ||
| 1- Format database:\\ | 1- Format database:\\ | ||
| < | < | ||
| diamond | diamond | ||
| </ | </ | ||
| + | * This will create a file with extension dmnd.\\ | ||
| + | \\ | ||
| 2- Run diamond:\\ | 2- Run diamond:\\ | ||
| < | < | ||
| + | diamond blastp --threads 8 -d < | ||
| + | </ | ||
| + | * Name the output file with the extension daa (DIAMOND alignment archive).\\ | ||
| + | \\ | ||
| + | 3- View results:\\ | ||
| + | < | ||
| + | diamond view -o < | ||
| + | </ | ||
| + | * < | ||
| + | * Name the output file with the extension tsv.\\ | ||
| + | * Alternatively, | ||
| + | < | ||
| + | diamond view -o < | ||
| + | </ | ||
| + | * I like to have the lengths of the query and subject sequences (qlen and slen respectively) which is not included in the default tabular format.\\ | ||
| + | \\ | ||
| + | Steps 2 and 3 can be gathered in the same shell script. For example:\\ | ||
| + | < | ||
| + | #!/bin/bash | ||
| + | #$ -S /bin/bash | ||
| + | . / | ||
| + | #$ -o diamond_nr.out | ||
| + | #$ -e diamond_nr.err | ||
| + | #$ -cwd | ||
| + | #$ -pe threaded 8 | ||
| diamond blastp --threads 8 -d < | diamond blastp --threads 8 -d < | ||
| - | diamond view -o < | + | diamond view -o < |
| + | </ | ||
| + | For help:\\ | ||
| + | < | ||
| + | diamond --help | ||
| </ | </ | ||
| - | |||
diamond_blast.1503420361.txt.gz · Last modified: by cgeb2001
