comparison blast_parser.xml @ 0:cc71440b759f draft default tip

Uploaded
author mytest
date Tue, 22 Sep 2015 01:58:00 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc71440b759f
1 <?xml version="1.0"?>
2 <tool id="blast_parser_using_awk" name="BLAST OUTPUT PARSER" version="0.0.1">
3
4 <description>parses Blast Output File</description>
5
6 <command>
7 /bin/awk
8 'BEGIN {FS="\t"} {if($11 &lt;= $evalue &amp;&amp; $13 &gt;= $qcovs) print $0 }'
9 $blastoutfile
10 &gt; $parsed_blastfile_above_cutoff;
11
12 /bin/awk
13 '{FS="\t"} {if($11 &gt; $evalue || $13 &lt; $qcovs) print $0 }'
14 $blastoutfile
15 &gt; $parsed_blastfile_below_cutoff;
16
17 /bin/sed -e '/^&gt;/s/$/@@@@/' -e 's/^&gt;/#/' $trinityassembledfile
18 | tr -d '\n'
19 | tr "#" '\n'
20 | sed -e 's/^/&gt;/' -e 's/@@@@/\n/'
21 | sed -e "1d"
22 &gt; $oneline_file;
23
24 /bin/awk
25 'BEGIN {FS="|"} {print "grep -w -A 1 \""$1"\" $oneline_file &gt;&gt; $blastfile_below_cutoff"}'
26 $parsed_blastfile_below_cutoff
27 &gt; pick_below_sh;
28
29 /bin/sh pick_below_sh;
30
31 /bin/awk
32 'BEGIN {FS="|"} {print "grep -w -A 1 \""$1"\" $oneline_file &gt;&gt; $blastfile_above_cutoff"}'
33 $parsed_blastfile_above_cutoff
34 &gt; pick_above_sh;
35
36 /bin/sh pick_above_sh;
37
38 </command>
39
40 <inputs>
41 <param name="blastoutfile" type="data" format="tabular" label="blast output file"/>
42 <param name="trinityassembledfile" type="data" format="fasta" label="Trinity Assembled [fasta file]" />
43 <param name="evalue" type="float" value='1e-05' label="EVALUE" help="default (evalue &lt; = 1e-05)"/>
44 <param name="qcovs" type="integer" value='95' label="Query Coverage" help="default (qcovs &gt; = 95)"/>
45 </inputs>
46
47 <outputs>
48 <data name="parsed_blastfile_above_cutoff" format="tabular" label="parsed_blastfile (Above Cutoff Value)" />
49 <data name="parsed_blastfile_below_cutoff" format="tabular" label="parsed_blastfile (Below cutoff Value)" />
50 <data name="oneline_file" format="fasta" label="parsed_trinity_assembled_file (oneline_file)" />
51 <data name="blastfile_below_cutoff" format="fasta" label="blast fasta file (Below cutoff Value)" />
52 <data name="blastfile_above_cutoff" format="fasta" label="blast fasta file (Above cutoff Value)" />
53 </outputs>
54
55 <tests/>
56 <help>blast output parser tool</help>
57
58
59 </tool>