Hi, I’m writing a tool to concatenate output csv files from a custom Rmarkdown galaxy analysis tool and am having some issues. I borrowed the concatenation code from the “concatenate_multiple_datasets” tool, which works just fine to concatenate files. The problem is, I really just want to append the concatenated dataset to a header line, but whenever I try to do this it looks like Galaxy decides that we’re just going to concatenate file names to the header.
Here’s the code, where “some stuff” will eventually be a megalist of comma separated column IDs:
<command><![CDATA[
echo "some stuff" > $out_file1
cat
#for $file in $input
${file}
#end for
>> $out_file1
]]>
</command>
And here’s the output:
some stuff cat /mnt/d/git_repos/Galaxy/galaxy/database/objects/c/f/d/dataset_cfda7470-0c6e-4ff1-8e63-1fd8a9bdffd0.dat /mnt/d/git_repos/Galaxy/galaxy/database/objects/a/3/9/dataset_a397895a-57b5-4963-828f-58414280225c.dat
Here’s what Galaxy says it’s doing on the command line, which looks right to me?:
echo “some stuff” > /mnt/d/git_repos/Galaxy/galaxy/database/objects/4/e/6/dataset_4e657268-daa7-4a2a-9c37-c04d7fd4f221.dat
cat /mnt/d/git_repos/Galaxy/galaxy/database/objects/c/f/d/dataset_cfda7470-0c6e-4ff1-8e63-1fd8a9bdffd0.dat /mnt/d/git_repos/Galaxy/galaxy/database/objects/a/3/9/dataset_a397895a-57b5-4963-828f-58414280225c.dat >> /mnt/d/git_repos/Galaxy/galaxy/database/objects/4/e/6/dataset_4e657268-daa7-4a2a-9c37-c04d7fd4f221.dat
If I leave out the echo "some stuff" > $out_file1
line everything just concatenates as normal. I’m a beginner at Cheetah and python so may have just missed something obvious (at least, I hope this is obvious). Any advice would be appreciated!