annotate ceas_macros.xml @ 3:f404ec7f679c

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