aces / cbrain

CBRAIN is a flexible Ruby on Rails framework for accessing and processing of large data on high-performance computing infrastructures.
GNU General Public License v3.0
71 stars 42 forks source link

Implement new Boutiques module for output renaming with patterns. #1249

Closed prioux closed 2 years ago

prioux commented 2 years ago

Many CBRAIN tasks integrated in the core brain API have the ability to create output files that contain parterns chosen by the user. E.g. a user can say the outputs of a large array of tasks are something like {infile}_{taskid}_{date}.out and the actual outputs end up named like subject04_Narval-12345_2022-02-02.out .

Boutiques tasks don't do that: when a user provides anoutput name such as abcd.ext, they always end up with output names like abcd_UNIQUETASKID.ext.

Let's create a new output renaming module that will support the standard patterns that some of the CBRAIN libraries support (see the methods that start with output_renaming in app/models/cluster_task_rb for instance)

prioux commented 2 years ago

The module should add an info panel to the output name description with an explanation of what substitution components are allowed, including those that are obtained from an input file.

prioux commented 2 years ago

Fully implemented in commit https://github.com/aces/cbrain/commit/ba92b49d171adfc4984b3b97e16237e49d96de13