# HG changeset patch # User cstrittmatter # Date 1535374742 14400 # Node ID abb622c228c45ad15c2afe646f513db99ef6b3aa # Parent 53d82924230b752182a9e0433888941816ff3995 planemo upload commit 1e3adef29c2d50fa89df02d0153e069c4328557e diff -r 53d82924230b -r abb622c228c4 run_skesa_collection.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run_skesa_collection.py Mon Aug 27 08:59:02 2018 -0400 @@ -0,0 +1,43 @@ +import sys + +from pathlib import Path + +path1 = sys.argv[1] + +cores = sys.argv[2] + +memory = sys.argv[2] + +print(path1) + +#print(path2) + +pathlist = Path(path1).glob('*fastq*') + +i = 0 +skcmd = [] + +skcmd.append("skesa ") + +for path in pathlist: + # because path is object not string-wq + i += 1 + path_in_str = str(path) + if i == 2: + skcmd.append("," + path_in_str) + #print("," + path_in_str) + i = 0 + if i == 1: + skcmd.append(" --fastq " + path_in_str) + #print(" --fastq " + path_in_str) + + + +if cores != 0: + skcmd.append(" --cores " + cores) + + +skcmd.append(" --memory " + memory) + +skcmds = ''.join(skcmd) +print(skcmds) diff -r 53d82924230b -r abb622c228c4 skesa.xml --- a/skesa.xml Thu Aug 16 14:54:58 2018 -0400 +++ b/skesa.xml Mon Aug 27 08:59:02 2018 -0400 @@ -1,32 +1,45 @@ - skesa + skesa + python results.skesa.fasta #end if - #if $cores != 0 - --cores $cores + + + #if $jobtype.select == "cl" + + #set $pathOuput = 0 + mkdir temp_data; + #for $collection_file in $jobtype.collection_files + #silent sys.stderr.write($collection_file+"\n") + cp $collection_file temp_data/.; + + #end for + + #end if - --memory $memory > results.skesa.fasta - #end if ]]> - @@ -47,7 +60,7 @@ - + @@ -55,8 +68,6 @@ - -