0
|
1 <macros>
|
|
2 <xml name="requirements">
|
|
3 <requirements>
|
|
4 <requirement type="package" version="2014-09-16">cistrome</requirement>
|
|
5 </requirements>
|
|
6 </xml>
|
|
7 <xml name="requirements_bx">
|
|
8 <requirements>
|
|
9 <requirement type="package" version="2014-09-16">cistrome</requirement>
|
|
10 <requirement type="package" version="0.7.1">bx-python</requirement>
|
|
11 </requirements>
|
|
12 </xml>
|
|
13 <xml name="stdio">
|
|
14 <stdio>
|
|
15 <exit_code range=":-1" level="fatal" description="Error: Cannot open file" />
|
|
16 <exit_code range="1:" level="fatal" description="Error" />
|
|
17 </stdio>
|
|
18 </xml>
|
|
19 <xml name="ceasdb_ref">
|
|
20 <conditional name="ref">
|
|
21 <param name="refsrc" type="select" label="">
|
|
22 <option value="cached">cached</option>
|
|
23 <option value="history">history</option>
|
|
24 <!--
|
|
25 <option value="build">build</option>
|
|
26 -->
|
|
27 </param>
|
|
28 <when value="cached">
|
|
29 <param name="ceasdb" type="select" label="">
|
|
30 <options from_data_table="ceasdb">
|
|
31 <filter type="unique_value" column="0" />
|
|
32 </options>
|
|
33 </param>
|
|
34 </when>
|
|
35 <when value="history">
|
|
36 <param name="gdb" type="data" format="ceasdb" label="Gene annotation table file (sqlite3)"/>
|
|
37 </when>
|
|
38 <!--
|
|
39 <when value="build">
|
|
40 </when>
|
|
41 -->
|
|
42 </conditional>
|
|
43 </xml>
|
|
44
|
|
45 <template name="script_chars">
|
|
46 #set global $dollar = chr(36)
|
|
47 #set global $gt = chr(62)
|
|
48 #set global $lt = chr(60)
|
|
49 #set global $ad = chr(38)
|
|
50 </template>
|
|
51
|
|
52 <template name="gtpath_ceasdb_ref">
|
|
53 #if $ref.refsrc == 'history':
|
|
54 -g $ref.gdb
|
|
55 #elif $ref.refsrc == 'cached':
|
|
56 -g $ref.ceasdb.fields.path
|
|
57 ## #elif $ref.refsrc == 'build':
|
|
58 ## #else:
|
|
59 ## -g os.path.join( os.path.abspath($__app__.config.cistrome_static_library_path), "ceaslib", "GeneTable", $dbkey )
|
|
60 #end if
|
|
61 </template>
|
|
62 <template name="validate_bedfile_sh">
|
|
63 ##check line count and file format accuracy of bed file
|
|
64 lines=`wc -l $bfile | tail -1 | awk '{print ${dollar}1}'`
|
|
65 ## bypass validation for now
|
|
66 ## format=`$path/validation/fcfunc.py $bfile`
|
|
67 format="passed"
|
|
68 if [[ ${dollar}lines -gt 100000 ]];then
|
|
69 echo "BED file is too big! 100K lines are the maximum!" ${gt}${ad}2
|
|
70 exit;
|
|
71 fi
|
|
72 if [[ ${dollar}format != "passed" ]]; then
|
|
73 echo ${dollar}format ${gt}${ad}2
|
|
74 exit;
|
|
75 fi
|
|
76 </template>
|
|
77
|
|
78 <token name="@EXTERNAL_DOCUMENTATION@">
|
|
79
|
|
80 For details about this application, please go to:
|
|
81 http://liulab.dfci.harvard.edu/CEAS/usermanual.html
|
|
82
|
|
83 Prebuilt reference Gene annotation tables (SQLite3) are available at:
|
|
84 http://liulab.dfci.harvard.edu/CEAS/download.html
|
|
85 http://liulab.dfci.harvard.edu/CEAS/src/
|
|
86
|
|
87 Set the dataset datatype to: "ceasdb" when uploading to your history.
|
|
88
|
|
89 </token>
|
|
90 <token name="@CITATION_SECTION@">------
|
|
91
|
|
92 **Citation**
|
|
93
|
|
94 For the underlying tool, please cite the following publication:
|
|
95 "CEAS: cis-regulatory element annotation system", Hyunjin Shin, Tao Liu, Arjun K. Manrai, and X. Shirley Liu,
|
|
96 Bioinformatics. 2009 Oct 1;25(19):2605-6. doi: 10.1093/bioinformatics/btp479. Epub 2009 Aug 18.
|
|
97
|
|
98 </token>
|
|
99 </macros>
|