diff --git a/tools/diamond/diamond.xml b/tools/diamond/diamond.xml index 3cec7bf6942..e5909969ebc 100644 --- a/tools/diamond/diamond.xml +++ b/tools/diamond/diamond.xml @@ -1,4 +1,4 @@ - + alignment tool for short sequences against a protein database macros.xml @@ -62,8 +62,23 @@ --query-cover '$query_cover' --subject-cover '$subject_cover' --block-size '$sens_cond.block_size' - #if str($unal) == '1': - --unal 1 --un '$unalqueries' + #if $output_unal + #if "--un" in $output_unal + --un '$unalqueries' + #if $query.ext.startswith("fasta"): + --unfmt fasta + #else + --unfmt fastq + #end if + #end if + #if "--al" in $output_unal + --al '$alqueries' + #if $query.ext.startswith("fasta"): + --alfmt fasta + #else + --alfmt fastq + #end if + #end if #end if #if $tax_cond.tax_select == 'file': --taxonlist `cat '$tax_cond.taxonlistfile' | grep -v "^#" | grep -v "^$" | tr "\n" "," | sed 's/,$//'` @@ -79,7 +94,7 @@ - + @@ -100,7 +115,7 @@ - + @@ -113,21 +128,21 @@ - + - + - + - + @@ -234,18 +249,24 @@ - - - + + + + + + - - unal == "1" + + output_unal and "--un" in output_unal + + + output_unal and "--un" in output_unal - + @@ -256,13 +277,15 @@ - + + + - + @@ -277,9 +300,20 @@ + + + + + + + + + + + - + @@ -300,7 +334,7 @@ - + @@ -317,7 +351,7 @@ - + @@ -336,7 +370,7 @@ - + @@ -353,7 +387,7 @@ - + @@ -364,10 +398,12 @@ + + - + @@ -386,7 +422,7 @@ - + diff --git a/tools/diamond/diamond_makedb.xml b/tools/diamond/diamond_makedb.xml index 7736bcd7187..423d29eeaa6 100644 --- a/tools/diamond/diamond_makedb.xml +++ b/tools/diamond/diamond_makedb.xml @@ -1,4 +1,4 @@ - + Build database from a FASTA file macros.xml diff --git a/tools/diamond/diamond_view.xml b/tools/diamond/diamond_view.xml index f3a043e3a30..59510b89914 100644 --- a/tools/diamond/diamond_view.xml +++ b/tools/diamond/diamond_view.xml @@ -1,4 +1,4 @@ - + generate formatted output from DAA files macros.xml @@ -29,7 +29,7 @@ - + @@ -40,7 +40,7 @@ - + @@ -48,7 +48,7 @@ - + diff --git a/tools/diamond/macros.xml b/tools/diamond/macros.xml index 3ef9b86a00f..3363a7e6d6c 100644 --- a/tools/diamond/macros.xml +++ b/tools/diamond/macros.xml @@ -1,9 +1,9 @@ - 2.0.8 + 2.0.8 - diamond + diamond @@ -69,6 +69,7 @@ + @@ -99,11 +100,11 @@ ments whose score is at most 10% lower than the best alignment score for a query - + - + @@ -145,11 +146,16 @@ ments whose score is at most 10% lower than the best alignment score for a query #else if $output.outfmt == "6" --outfmt '6' #echo ' '.join(str($output.fields).split(',')) --out '$blast_tabular' + --unal $output.unal #else if $output.outfmt == "100" --outfmt '100' + $output.salltitles + $output.sallseqid --out output.daa #else if $output.outfmt == "101" --outfmt '101' + $output.salltitles + $output.sallseqid --out '$sam_output' #else if $output.outfmt == "102" --outfmt '102' diff --git a/tools/diamond/test-data/diamond_results.tabular b/tools/diamond/test-data/diamond_results.tabular index 288cde445e7..bff70449b36 100644 --- a/tools/diamond/test-data/diamond_results.tabular +++ b/tools/diamond/test-data/diamond_results.tabular @@ -1,2 +1,3 @@ -sequence gi|5524211|gb|AAD44166.1| 99.6 284 0 1 1 283 1 284 1.44e-205 550 94M1D189M 100 0 0 0 -sequence gi|5524212|gb|AAD44167.1| 79.6 284 57 1 1 283 1 284 5.77e-150 409 105M1D178M 100 0 0 0 +sequence gi|5524211|gb|AAD44166.1| 99.6 284 0 1 1 283 1 284 1.44e-205 550 100 0 0 0 +sequence gi|5524212|gb|AAD44167.1| 79.6 284 57 1 1 283 1 284 5.77e-150 409 100 0 0 0 +shuffled * -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 * * * diff --git a/tools/diamond/test-data/protein.fasta b/tools/diamond/test-data/protein.fasta index cf5ea4ac184..d31403db9e9 100644 --- a/tools/diamond/test-data/protein.fasta +++ b/tools/diamond/test-data/protein.fasta @@ -4,3 +4,9 @@ EWIWGGFSVDKATLNRFFAFHFILFTMVALAGVHLTFLHETGSNNPLGLTSDSDKIPFHPYYTIKDFLG LLILILLLLLLALLSPDMLGDPDNHMPADPLNTPLHIKPEWYFLFAYAILRSVPNKLGGVLALFLSIVIL GLMPFLHTSKHRSMMLRPLSQALFWTLTMDLLTLTWIGSQPVEYPYTIIGQMASILYFSIILAFLPIAGX IENY +>shuffled sequence that should go to unaligned +XLPLILMLLGISPGSFEHTVAGGIWTSLMLFLPGYPGVGFLMLLVITVPALNFKFGFMLL +LKPTTNIIKTLVLALTHADDPLSFPWLNYMPPAADFNGLFTNAGATTTLYQIPYEGSFYL +AAIYGSMLHENHYLYRSMTPVGWLHLGDSGLRFMLLPIYYARITYDNVPAGWFLSVNTIL +GLTAILLEAIKALMANYSESQEPFCFSTGMKHSFIISDILGWDMSLYIILLIPHTNPFVL +TFLTLILWLDILSRYTLLQVNLIIFMTRHGHFQIADIWYWLKS