Hello,
I currently develop a galaxy tool and I want to remove the extension from my input file. For example, if my input file is "myfile.bam", I want to return a file named "myfile.something".
I would like to do something like that :
<data name="output1" label="${input}.something"/>
But I don't know how to remove the .bam extension, just how to add other things after it.. How can I do that ?
Hi, thanks for your answer.
That the point. (you're right my example was wrong, sorry, I will correct that, but it show what I want to do) but by input file I mean the user file, witch is a .bam. And I want to rename my output file by myself, cause in fact the soft doesn't product an extension recognize by Galaxy, and so I can't use the format attribute.
So what I want is to take the input file name (smth.bam) remove the .bam extension and add something other (.aaa or what you want) for the output.
(I have updated my post a little bit cause it wasn't really explicit)
The true command seem to be :
It return myInputFile.bam.something, but it's not what I want, do you have an idea for remove the .bam ?
The data tag takes a
format
attribute. Then it doesn't matter what file extension the results happen to have.Okay, but the format attribute doesn't modify the output file name.
So I guess it's impossible to work on the name itself. Since my input file format is not recognized by Galaxy, I am then condemned to keep this extension in my output file name..
Thanks for your answers.