# HG changeset patch # User devteam # Date 1581524192 18000 # Node ID 5da9a0e2fb2d47fd5bb263234ff852c2c33f41f5 # Parent 08256557922fd657046761552d5a09a4a019f204 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/velvet commit 8301d37348be25a038b3c63b049b1178d05f5003" diff -r 08256557922f -r 5da9a0e2fb2d tool_dependencies.xml --- a/tool_dependencies.xml Tue Oct 13 16:38:28 2015 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - - - - - - diff -r 08256557922f -r 5da9a0e2fb2d velvetg.xml --- a/velvetg.xml Tue Oct 13 16:38:28 2015 -0400 +++ b/velvetg.xml Wed Feb 12 11:16:32 2020 -0500 @@ -1,76 +1,79 @@ - + Velvet sequence assembler for very short reads - velvetg 2>&1 | grep "Version" | sed -e 's/Version //' macros.xml - - velvetg_wrapper.py - '$input.extra_files_path' - #if $generate_amos.afg == "yes": - -amos_file $generate_amos.afg - #end if - #if $unused_reads.generate_unused == "yes": - -unused_reads $unused_reads.generate_unused - #end if - $read_trkg - #if $coverage.cutoff == "auto": - -cov_cutoff auto - #elif $coverage.cutoff == "value": - -cov_cutoff $coverage.cov_cutoff - #end if - #if $expected.coverage == "auto": - -exp_cov auto - #elif $expected.coverage == "value": - -exp_cov $expected.exp_cov - #end if - #if $contig_lgth.use_contig_lgth == "yes": - -min_contig_lgth $contig_lgth.min_contig_lgth - #end if - #if $reads.paired == "yes": - #if int($reads.ins_length) > 0: - -ins_length $reads.ins_length - #end if - #if $reads.options.advanced == "yes": - #if int($reads.options.ins_length_sd) > 0: - -ins_length_sd $reads.options.ins_length_sd - #end if - #if int($reads.options.ins_length2) > 0: - -ins_length2 $reads.options.ins_length2 - #end if - #if int($reads.options.ins_length2_sd) > 0: - -ins_length2_sd $reads.options.ins_length2_sd - #end if - #if int($reads.options.ins_length_long) > 0: - -ins_length_long $reads.options.ins_length_long - #end if - #if int($reads.options.ins_length_long_sd) > 0: - -ins_length_long_sd $reads.options.ins_length_long_sd - #end if - #if int($reads.options.max_branch_length) > 0: - -max_branch_length $reads.options.max_branch_length - #end if - #if int($reads.options.max_divergence) > 0: - -max_divergence $reads.options.max_divergence - #end if - #if int($reads.options.max_gap_count) > 0: - -max_gap_count $reads.options.max_gap_count - #end if - #if int($reads.options.min_pair_count) > 0: - -min_pair_count $reads.options.min_pair_count - #end if - #if int($reads.options.max_coverage) > 0: - -max_coverage $reads.options.max_coverage - #end if - #if int($reads.options.long_mult_cutoff) > 0: - -long_mult_cutoff $reads.options.long_mult_cutoff - #end if - $reads.options.scaffolding - #end if - #end if - + &1 | grep "Version" | sed -e 's/Version //' + ]]> + 0: + -ins_length $reads.ins_length + #end if + #if $reads.options.advanced == "yes": + #if int($reads.options.ins_length_sd) > 0: + -ins_length_sd $reads.options.ins_length_sd + #end if + #if int($reads.options.ins_length2) > 0: + -ins_length2 $reads.options.ins_length2 + #end if + #if int($reads.options.ins_length2_sd) > 0: + -ins_length2_sd $reads.options.ins_length2_sd + #end if + #if int($reads.options.ins_length_long) > 0: + -ins_length_long $reads.options.ins_length_long + #end if + #if int($reads.options.ins_length_long_sd) > 0: + -ins_length_long_sd $reads.options.ins_length_long_sd + #end if + #if int($reads.options.max_branch_length) > 0: + -max_branch_length $reads.options.max_branch_length + #end if + #if int($reads.options.max_divergence) > 0: + -max_divergence $reads.options.max_divergence + #end if + #if int($reads.options.max_gap_count) > 0: + -max_gap_count $reads.options.max_gap_count + #end if + #if int($reads.options.min_pair_count) > 0: + -min_pair_count $reads.options.min_pair_count + #end if + #if int($reads.options.max_coverage) > 0: + -max_coverage $reads.options.max_coverage + #end if + #if int($reads.options.long_mult_cutoff) > 0: + -long_mult_cutoff $reads.options.long_mult_cutoff + #end if + $reads.options.scaffolding + #end if +#end if + ]]> @@ -142,7 +145,7 @@ - + @@ -188,15 +191,12 @@ - - velvet - - - - - + + + + @@ -207,15 +207,15 @@ - - - - + + + + - + + ]]> diff -r 08256557922f -r 5da9a0e2fb2d velvetg_wrapper.py --- a/velvetg_wrapper.py Tue Oct 13 16:38:28 2015 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +0,0 @@ -#!/usr/bin/env python - -""" -Classes encapsulating decypher tool. -James E Johnson - University of Minnesota -""" -import os -import sys -import subprocess - -assert sys.version_info[:2] >= ( 2, 4 ) - -def stop_err( msg ): - sys.stderr.write( "%s\n" % msg ) - sys.exit() - - -def __main__(): - #Parse Command Line - working_dir = sys.argv[1] - inputs = ' '.join(sys.argv[2:]) - for _ in ('Roadmaps', 'Sequences'): - os.symlink(os.path.join(working_dir, _), _) - cmdline = 'velvetg . %s' % (inputs) - print "Command to be executed: %s" % cmdline - try: - proc = subprocess.Popen( args=cmdline, shell=True, stderr=subprocess.PIPE ) - returncode = proc.wait() - # get stderr, allowing for case where it's very large - stderr = '' - buffsize = 1048576 - try: - while True: - stderr += proc.stderr.read( buffsize ) - if not stderr or len( stderr ) % buffsize != 0: - break - except OverflowError: - pass - if returncode != 0: - raise Exception, stderr - except Exception, e: - stop_err( 'Error running velvetg ' + str( e ) ) - - -if __name__ == "__main__": - __main__() diff -r 08256557922f -r 5da9a0e2fb2d velveth.xml --- a/velveth.xml Tue Oct 13 16:38:28 2015 -0400 +++ b/velveth.xml Wed Feb 12 11:16:32 2020 -0500 @@ -1,24 +1,27 @@ - + Prepare a dataset for the Velvet velvetg Assembler - velveth 2>&1 | grep "Version" | sed -e 's/Version //' macros.xml - - velveth_wrapper.py - '$out_file1' '$out_file1.extra_files_path' - $hash_length - $strand_specific - #for $i in $inputs - ${i.file_format} - ${i.read_type} - ${i.input} - #end for - + &1 | grep "Version" | sed -e 's/Version //' + ]]> + - + @@ -29,6 +32,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -51,11 +135,8 @@ - + - - velvet - @@ -67,13 +148,12 @@ - - + + - - + + ]]> diff -r 08256557922f -r 5da9a0e2fb2d velveth_wrapper.py --- a/velveth_wrapper.py Tue Oct 13 16:38:28 2015 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +0,0 @@ -#!/usr/bin/env python - -""" -Classes encapsulating decypher tool. -James E Johnson - University of Minnesota -""" -import pkg_resources -import logging, os, string, sys, tempfile, glob, shutil, types, urllib -import shlex, subprocess -from optparse import OptionParser, OptionGroup -from stat import * - - -log = logging.getLogger( __name__ ) - -assert sys.version_info[:2] >= ( 2, 4 ) - -def stop_err( msg ): - sys.stderr.write( "%s\n" % msg ) - sys.exit() - -def __main__(): - #Parse Command Line - s = 'velveth_wrapper.py: argv = %s\n' % (sys.argv) - argcnt = len(sys.argv) - html_file = sys.argv[1] - working_dir = sys.argv[2] - try: # for test - needs this done - os.makedirs(working_dir) - except Exception, e: - stop_err( 'Error running velveth ' + str( e ) ) - hash_length = sys.argv[3] - inputs = string.join(sys.argv[4:],' ') - cmdline = 'velveth %s %s %s > /dev/null' % (working_dir, hash_length, inputs) - try: - proc = subprocess.Popen( args=cmdline, shell=True, stderr=subprocess.PIPE ) - returncode = proc.wait() - # get stderr, allowing for case where it's very large - stderr = '' - buffsize = 1048576 - try: - while True: - stderr += proc.stderr.read( buffsize ) - if not stderr or len( stderr ) % buffsize != 0: - break - except OverflowError: - pass - if returncode != 0: - raise Exception, stderr - except Exception, e: - stop_err( 'Error running velveth ' + str( e ) ) - sequences_path = os.path.join(working_dir,'Sequences') - roadmaps_path = os.path.join(working_dir,'Roadmaps') - rval = ['Velvet Galaxy Composite Dataset

'] - rval.append('

%s

' % (cmdline) ) - rval.append('
This composite dataset is composed of the following files:

    ') - rval.append( '
  • %s %s
  • ' % (sequences_path,'Sequences','Sequences' ) ) - rval.append( '
  • %s %s
  • ' % (roadmaps_path,'Roadmaps','Roadmaps' ) ) - rval.append( '
' ) - f = file(html_file,'w') - f.write("\n".join( rval )) - f.write('\n') - f.close() - -if __name__ == "__main__": __main__()