# HG changeset patch # User jjohnson # Date 1453053792 18000 # Node ID 5a4237bbe6bf9d02d19cdfac092949776cd51838 planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/packages/package_defuse_0_6_2 commit e9b93500b3fd7b26de9b8218b63d8346c6682634-dirty diff -r 000000000000 -r 5a4237bbe6bf tool_dependencies.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_dependencies.xml Sun Jan 17 13:03:12 2016 -0500 @@ -0,0 +1,54 @@ + + + + + + + + + git clone https://bitbucket.org/dranew/defuse.git defuse + git reset --hard 5c13b80f62bcbb8ac4b7d517488be0986b080723 + + + + + + + export CPLUS_INCLUDE_PATH=$BOOST_ROOT_DIR/include:$CPLUS_INCLUDE_PATH && cd tools && make + + + cd scripts && + cp create_reference_dataset.pl create_reference_dataset.pl.orig && + cat create_reference_dataset.pl.orig | + sed 's#wget_gunzip("ftp://hgdownload.cse.ucsc.edu/goldenPath/$ucsc_genome_version/database/rmsk.txt.gz", $repeats_filename);##' | + sed 's#wget_gunzip("ftp://hgdownload.cse.ucsc.edu/goldenPath/hg19/database/intronEst.txt.gz", $est_alignments);##' | + sed 's#^\(my .*ensembl_genome_version.*config.*get_value.*;\)#\1Qmy $ensembl_organism = $config->get_value("ensembl_organism");Qmy $ensembl_prefix = $config->get_value("ensembl_prefix");Qmy $ncbi_organism = $config->get_value("ncbi_organism");Qmy $ncbi_prefix = $config->get_value("ncbi_prefix");#' | + sed 's/^\(sub wget_gunzip\)/sub try_wgetQ{Q my $url = shift;Q my $filename = shift;Q my $filename_gz = $filename.".gz";Q my $rslt = system "wget $url -O $filename_gz";Q if($rslt == 0)Q {Q $rslt = system "gunzip $filename_gz";Q }Q return $rslt;Q}QQ\1/' | + sed 's#^\(.*/gtf/.*\)$#\1Q system_with_check("if `grep -v gene_name $gene_models > /dev/null`; then mv $gene_models ${gene_models}.orig; grep gene_name ${gene_models}.orig > $gene_models; fi");#' | + tr 'Q' '\n' | + awk 'BEGIN{pfx="p1";fn="p2";}/if \(not -e \$repeats_filename\)/{pfx="rmsk";fn="repeats_filename";} /if \(not -e \$est_alignments\)/{pfx="intronEst";fn="est_alignments"} /ucsc_genome_version eq "hg18"/{printf("\tif (try_wget(\"ftp://hgdownload.cse.ucsc.edu/goldenPath/$ucsc_genome_version/database/%s.txt.gz\", \$%s) != 0)\n",pfx,fn);} $0 !~ /ucsc_genome_version eq "hg18/{print $0;}' | + sed 's#UniGene/Homo_sapiens#UniGene/$ncbi_organism#' | + sed 's/Hs.seq.uniq.gz/$ncbi_prefix.seq.uniq.gz/' | + sed 's/homo_sapiens/$ensembl_organism/' | + sed 's/Homo_sapiens/$ensembl_prefix/' | + sed 's/hg19/$ucsc_genome_version/' > create_reference_dataset.pl + + + . + $INSTALL_DIR + + + $INSTALL_DIR + + + $INSTALL_DIR/tools + + + + +deFuse code +To build the deFuse toolset you must have the boost c++ development libraries installed. If they are not installed on your system you can download them from the boost website. A full install of boost is not required. The easiest thing to do is to download the latest boost source tar.gz, extract it, then add the extracted path to the CPLUS_INCLUDE_PATH environment variable (in bash, `export CPLUS_INCLUDE_PATH=/boost/directory/:$CPLUS_INCLUDE_PATH`) + + + +