# HG changeset patch # User iuc # Date 1617974511 0 # Node ID 35ac9de60bec89ad6db5db52f7c9f804e44adc8a # Parent e5b18909f73d56f00ec28209b9a1c3550c2f0b9b "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meryl commit 9c098f0bdeca38de2f282a85a20e9e6fb3fd4929" diff -r e5b18909f73d -r 35ac9de60bec macros.xml --- a/macros.xml Thu Apr 08 19:22:17 2021 +0000 +++ b/macros.xml Fri Apr 09 13:21:51 2021 +0000 @@ -1,6 +1,6 @@ 1.2 - galaxy0 + galaxy1 topic_0196 diff -r e5b18909f73d -r 35ac9de60bec meryl.xml --- a/meryl.xml Thu Apr 08 19:22:17 2021 +0000 +++ b/meryl.xml Fri Apr 09 13:21:51 2021 +0000 @@ -8,16 +8,20 @@ meryl --version read-db.hist #elif $operation_type.command_type == 'trio-mode' export MERQURY=\$(dirname \$(command -v merqury.sh))/../share/merqury/ && + #if $operation_type.options_kmer_size.kmer_size == 'estimate' + #from math import log + #set size=int(log(int($operation_type.options_kmer_size.genome_size)*(1-float($operation_type.options_kmer_size.collision_rate))/float($operation_type.options_kmer_size.collision_rate))/log(4)) + #elif $operation_type.options_kmer_size.kmer_size == 'provide' + #set size=$operation_type.options_kmer_size.input_kmer_size + #end if #for $i, $read in enumerate($paternal_reads): mkdir 'paternal{$i}.meryl' && - meryl count k=$operation_type.options_kmer_size.input_kmer_size '${read}' output 'paternal{$i}.meryl' && + meryl count k=$size memory=\${GALAXY_MEMORY_GB:-1} threads=\${GALAXY_SLOTS:-1} '${read}' output 'paternal{$i}.meryl' && #end for meryl union-sum paternal*.meryl output pat.meryl && #for $i, $read in enumerate($maternal_reads): mkdir 'maternal{$i}.meryl' && - meryl count k=$operation_type.options_kmer_size.input_kmer_size '${read}' output 'maternal{$i}.meryl' && + meryl count k=$size memory=\${GALAXY_MEMORY_GB:-1} threads=\${GALAXY_SLOTS:-1} '${read}' output 'maternal{$i}.meryl' && #end for meryl union-sum maternal*.meryl output mat.meryl && #for $i, $read in enumerate($child_reads): mkdir 'child{$i}.meryl' && - meryl count k=$operation_type.options_kmer_size.input_kmer_size '${read}' output 'child{$i}.meryl' && + meryl count k=$size memory=\${GALAXY_MEMORY_GB:-1} threads=\${GALAXY_SLOTS:-1} '${read}' output 'child{$i}.meryl' && #end for meryl union-sum child*.meryl output child.meryl && ## mat specific kmers @@ -117,7 +127,7 @@ meryl union-sum output child.inherited.meryl mat.inherited.meryl pat.inherited.meryl shared.inherited.meryl && meryl difference output read.only.meryl child.meryl child.inherited.meryl && tar -czf 'read-db.meryldb' read.only.meryl && - echo 'K-mer size: ${$operation_type.options_kmer_size.input_kmer_size}' + echo 'K-mer size: ${size}' #end if ]]> @@ -143,7 +153,7 @@ - + @@ -203,7 +213,7 @@ - +