Mercurial > repos > bernhardlutz > twistdna
changeset 6:d8680fec03b6 draft
Uploaded
author | bernhardlutz |
---|---|
date | Tue, 24 Dec 2013 06:21:13 -0500 |
parents | 14f79d7a4e5e |
children | bc5a4bc0d372 |
files | create_zip.py tool_dependencies.xml twistdna.xml |
diffstat | 3 files changed, 22 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/create_zip.py Tue Dec 24 06:21:13 2013 -0500 @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +import os +import sys +import zipfile + + +os.chdir(sys.argv[2]) + +# create zip file in current directory named first argument in folder second argument + +zf = zipfile.ZipFile(sys.argv[1], mode='w') +for files in os.listdir(sys.argv[2]): + zf.write(files) +zf.close()
--- a/tool_dependencies.xml Mon Dec 23 17:14:40 2013 -0500 +++ b/tool_dependencies.xml Tue Dec 24 06:21:13 2013 -0500 @@ -2,6 +2,10 @@ <package name="twistdna" version="1.1"> <install version="1.0"> <actions> + <action type="move_file"> + <source>create_zip.py</source> + <destination>$INSTALL_DIR/bin</destination> + </action> <action type="download_by_url">http://www.cbp.ens-lyon.fr/lib/exe/fetch.php?media=developpement:productions:logiciels:twist-dna_1.1.tar.gz</action> <action type="shell_command">make </action> <action type="make_directory">$INSTALL_DIR/bin</action>
--- a/twistdna.xml Mon Dec 23 17:14:40 2013 -0500 +++ b/twistdna.xml Tue Dec 24 06:21:13 2013 -0500 @@ -1,10 +1,11 @@ <tool id="twistdna" name="TwistDNA" version="0.1.0"> - <description></description> + <description>Twist-DNA, a program that predicts the locations of these regions by efficiently computing base-pair and bubble opening probabilities in genomic DNA. The program allows visualization of results in standard genome browsers to compare DNA opening properties to other available datasets. </description> <requirements> <requirement type="package" version="1.1">twistdna</requirement> </requirements> <command> -TwistDNA $input $outfile +TwistDNA < $input > $outfile +python create_zip.py $outfile "." </command> <stdio> <exit_code range="1:" level="fatal" description="Error occurred. Please check Tool Standard Error" />