Mercurial > repos > anmoljh > compound_id_extract
annotate extract_compound_id.xml @ 0:a45e6db3fdf0 draft default tip
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
| author | anmoljh |
|---|---|
| date | Fri, 01 Jun 2018 04:54:06 -0400 |
| parents | |
| children |
| rev | line source |
|---|---|
|
0
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
2 <tool id="extract_compound_id" name="Compound-ID Extractor" version="1.0"> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
3 <description>This tool extracts compound name/id from prediction result</description> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
4 <stdio> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
5 <exit_code range="1:" /> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
6 </stdio> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
7 |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
8 <command><![CDATA[ |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
9 |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
10 awk -F '\t' '{print $1}' $predictionfile | sed '1d' | sed 's/"//g' | sed -e 's/^[ \t]*//;s/[ \t]*$//' | paste -sd "," - > $extracted_IDs ; |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
11 |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
12 ]]></command> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
13 |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
14 <inputs> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
15 <param name="predictionfile" type="data" format="txt,csv,tabular" label="Predition Result File" help ="upload gcac prediction result file obtained from the tool 'Extract_Compound_IDs_From_Prediction_Result_based_on_scores'" /> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
16 </inputs> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
17 |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
18 <outputs> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
19 <data name="extracted_IDs" format="txt" label="Ids-${predictionfile.name}" /> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
20 </outputs> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
21 <tests> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
22 <test> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
23 <param name="predictionfile" value="selected_compounds.txt" /> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
24 <output name="extracted_IDs" file="extracted_ids.txt" compare="sim_size" delta="2000" /> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
25 </test> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
26 </tests> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
27 <help></help> |
|
a45e6db3fdf0
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
28 </tool> |
