|
0
|
1 <?xml version="1.0"?>
|
|
|
2 <tool_dependency>
|
|
|
3 <package name="numpy" version="1.9">
|
|
|
4 <repository changeset_revision="507f3ab4e38d" name="package_python_2_7_numpy_1_9" owner="iuc" prior_installation_required="True" toolshed="https://testtoolshed.g2.bx.psu.edu" />
|
|
|
5 </package>
|
|
|
6
|
|
|
7 <package name="cython" version="0.20.1">
|
|
|
8 <repository changeset_revision="749f11b9358a" name="package_cython_0_20_1" owner="iuc" prior_installation_required="True" toolshed="https://testtoolshed.g2.bx.psu.edu" />
|
|
|
9 </package>
|
|
|
10
|
|
|
11 <package name="crossmap" version="0.1.8">
|
|
|
12 <install version="1.0">
|
|
|
13 <actions>
|
|
8
|
14 <action type="download_by_url">http://sourceforge.net/projects/crossmap/files/CrossMap-0.1.8.tar.gz</action>
|
|
|
15
|
|
0
|
16 <action type="setup_python_environment">
|
|
6
|
17 <repository changeset_revision="749f11b9358a" name="package_cython_0_20_1" owner="iuc" toolshed="https://testtoolshed.g2.bx.psu.edu">
|
|
|
18 <package name="cython" version="0.20.1" />
|
|
0
|
19 </repository>
|
|
6
|
20 <repository changeset_revision="507f3ab4e38d" name="package_python_2_7_numpy_1_9" owner="iuc" toolshed="https://testtoolshed.g2.bx.psu.edu">
|
|
|
21 <package name="numpy" version="1.9" />
|
|
0
|
22 </repository>
|
|
8
|
23 </action>
|
|
|
24
|
|
9
|
25 <!-- CrossMap doesn't pick up the correct Cython path.
|
|
|
26 Therefore install it with a manual shell_command instead
|
|
|
27 of <package></package> inside the pyton_env. -->
|
|
8
|
28 <action type="shell_command">
|
|
|
29 export PYTHONPATH="$CYTHON_PATH/lib/python/Cython-0.20.1-py2.7-linux-x86_64.egg:$PYTHONPATH" &&
|
|
9
|
30
|
|
|
31 export PYTHONPATH=$PYTHONPATH:$INSTALL_DIR/lib/python &&
|
|
10
|
32 python setup.py install --install-dir $INSTALL_DIR --install-lib $INSTALL_DIR/lib/python --install-scripts $INSTALL_DIR/bin
|
|
0
|
33 </action>
|
|
3
|
34
|
|
0
|
35 <action type="set_environment">
|
|
|
36 <environment_variable action="prepend_to" name="PYTHONPATH">$INSTALL_DIR/usr/local/lib/python2.7/site-packages</environment_variable>
|
|
|
37 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/usr/local/bin</environment_variable>
|
|
|
38
|
|
|
39 <environment_variable action="set_to" name="PATH_CROSSMAP">$INSTALL_DIR/usr/local/bin</environment_variable>
|
|
|
40 <environment_variable action="set_to" name="CROSSMAP_ROOT_DIR">$INSTALL_DIR</environment_variable>
|
|
|
41 </action>
|
|
|
42 </actions>
|
|
|
43 </install>
|
|
|
44 <readme>
|
|
|
45 CrossMap is versatile tool to convert genome coordinates or annotation files between genome
|
|
|
46 assemblies. It supports mostly commonly used file types, including BAM, BED,BigWig, GFF,
|
|
|
47 GTF, SAM, Wiggle, and VCF formats. For large plain text file types, such as BED, GFF, GTF
|
|
|
48 and VCF, reading from remote servers and file compression are supported.
|
|
|
49
|
|
|
50 Installation
|
|
|
51
|
|
|
52 Prerequisite:
|
|
|
53 * gcc
|
|
|
54 * python2.7 or newer
|
|
|
55 * numpy
|
|
|
56 * cython
|
|
|
57
|
|
|
58 Download CrossMap program from here:
|
|
|
59
|
|
|
60 $ tar zxf CrossMap-VERSION.tar.gz
|
|
|
61
|
|
|
62 $ cd CrossMap-VERSION
|
|
|
63
|
|
|
64 # install CrossMap to default location. In Linux/Unix, this location is like:
|
|
|
65 # /home/user/lib/python2.7/site-packages/
|
|
|
66 $ python setup.py install
|
|
|
67
|
|
|
68 # or you can install CrossMap to a specified location:
|
|
|
69 $ python setup.py install --root=/home/user/CrossMap
|
|
|
70
|
|
|
71 # setup PYTHONPATH. Skip this step if CrossMap was installed to default location.
|
|
|
72 $ export PYTHONPATH=/home/user/CrossMap/usr/local/lib/python2.7/site-packages:$PYTHONPATH.
|
|
|
73
|
|
|
74 # Skip this step if CrossMap was installed to default location.
|
|
|
75 $ export PATH=/home/user/CrossMap/usr/local/bin:$PATH
|
|
|
76
|
|
|
77 NOTE:
|
|
|
78
|
|
|
79 * Due to intensive computation, CrossMap is designed to run on Linux/Unix and Mac OS. Some modules may not work properly on Windows.
|
|
|
80 * Mac users need to download and install Xcode command line tools.
|
|
|
81
|
|
|
82 Documentation: http://crossmap.sourceforge.net/
|
|
|
83 </readme>
|
|
|
84 </package>
|
|
|
85 </tool_dependency>
|