diff --git a/tools/trinity/abundance_estimates_to_matrix.xml b/tools/trinity/abundance_estimates_to_matrix.xml index 2b2c12bbe55..ce022d9dfcb 100644 --- a/tools/trinity/abundance_estimates_to_matrix.xml +++ b/tools/trinity/abundance_estimates_to_matrix.xml @@ -89,7 +89,7 @@ - + @@ -112,7 +112,7 @@ - + @@ -135,7 +135,7 @@ - + @@ -158,7 +158,7 @@ - + @@ -180,7 +180,7 @@ - + @@ -197,7 +197,7 @@ - + @@ -214,7 +214,7 @@ - + diff --git a/tools/trinity/align_and_estimate_abundance.xml b/tools/trinity/align_and_estimate_abundance.xml index 4c07591f760..11055ae5102 100644 --- a/tools/trinity/align_and_estimate_abundance.xml +++ b/tools/trinity/align_and_estimate_abundance.xml @@ -180,7 +180,7 @@ - + @@ -203,7 +203,7 @@ - + @@ -226,7 +226,7 @@ - + @@ -249,7 +249,7 @@ - + diff --git a/tools/trinity/analyze_diff_expr.xml b/tools/trinity/analyze_diff_expr.xml index 9ef42df5fc8..26858238847 100644 --- a/tools/trinity/analyze_diff_expr.xml +++ b/tools/trinity/analyze_diff_expr.xml @@ -96,7 +96,7 @@ - + @@ -125,7 +125,7 @@ - + @@ -154,7 +154,7 @@ - + diff --git a/tools/trinity/trinity.xml b/tools/trinity/trinity.xml index 215f8cc87c9..b2aabc1c91a 100644 --- a/tools/trinity/trinity.xml +++ b/tools/trinity/trinity.xml @@ -1,4 +1,4 @@ - + de novo assembly of RNA-Seq data macros.xml @@ -14,12 +14,11 @@ GALAXY_MEMORY_GB=\$((GALAXY_MEMORY_MB / 1024)) ; fi ; - if [ ! -z "\$TRINITY_SCRATCH_DIR" ] ; then - workdir=`pwd` ; - scratchfolder=\$(mktemp -d -p "\$TRINITY_SCRATCH_DIR"); - emptyfolder=\$(mktemp -d -p "\$TRINITY_SCRATCH_DIR"); - cd "\$scratchfolder" ; - fi ; + TRINITY_SCRATCH_DIR=\${TRINITY_SCRATCH_DIR:-\${TMPDIR:-\$_GALAXY_JOB_TMP_DIR}} + workdir=\$(pwd) + scratchfolder=\$(mktemp -d -p "\$TRINITY_SCRATCH_DIR"); + emptyfolder=\$(mktemp -d -p "\$TRINITY_SCRATCH_DIR"); + cd "\$scratchfolder" ; #if $additional_params.guided.is_guided == "yes": ln -s '${$additional_params.guided.genome_guided_bam}' 'localbam.bam' && @@ -148,22 +147,16 @@ ## CPU and butterfly options. --CPU \${GALAXY_SLOTS:-4} --max_memory \${GALAXY_MEMORY_GB:-1}G --bflyHeapSpaceMax \${GALAXY_MEMORY_GB:-1}G --bfly_opts '-V 10 --stderr' - ## > $trinity_log 2>&1 - && ## Trinity can create millions of files in the same directory, so the cleaning task makes use of rsync ## for ensuring better performances. ## see: https://web.archive.org/web/20130929001850/http://linuxnote.net/jianingy/en/linux/a-fast-way-to-remove-huge-number-of-files.html - if [ ! -z "\$TRINITY_SCRATCH_DIR" ] ; then - mkdir -p "\$workdir/trinity_out_dir"; - cp -p trinity_out_dir/Trinity* "\$workdir/trinity_out_dir"; - cd "\$TRINITY_SCRATCH_DIR"; - rsync -a --delete "\$emptyfolder/" "\$scratchfolder/"; - rmdir "\$emptyfolder" "\$scratchfolder/"; - cd "\$workdir"; - fi ; - + rsync -a --delete "\$emptyfolder/" "\$scratchfolder/" --exclude=trinity_out_dir.Trinity.fasta --exclude=trinity_out_dir.Trinity.fasta.gene_trans_map; + mv "\$scratchfolder/trinity_out_dir.Trinity.fasta" '$assembled_transcripts'; + mv "\$scratchfolder/trinity_out_dir.Trinity.fasta.gene_trans_map" '$gene_to_trans'; + cd "\$workdir"; + rmdir "\$emptyfolder" "\$scratchfolder" ]]> @@ -235,8 +228,8 @@ - - + +