-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance relabel_from_file to work with any column pair in mapping file #19022
Conversation
I don't use Galaxy or follow the latest trends in tool design - so feel free to just dismiss this suggestion if it doesn't reflect how tools are actually used. My gut is though I would implement this as changing: <option value="txt">Using lines in a simple text file.</option>
<option value="tabular">Map original identifiers to new ones using a two column table.</option> to: <option value="txt">Using lines in a simple text file.</option>
<option value="tabular">Map original identifiers to new ones using the first two columns of a simple table.</option>
<option value="tabular_configured">Map original identifiers to new ones using arbitrary columns from a table.</option> And then adding more advanced option in that new selection when - including like comment line skipping and table type options (stuff like break on commas instead of tabs). But that might be overkill. Either way though - this seems solid and I'm a +1 on it after it has tests and the linting issue is fixed. |
I hadn't considered such advanced options because, so far, I've only encountered the column issue during WF development. |
Hi everyone, |
@@ -1,6 +1,6 @@ | |||
<tool id="__RELABEL_FROM_FILE__" | |||
name="Relabel identifiers" | |||
version="1.0.0" | |||
version="1.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does the versioning of those tools work? Do we need a copy of this file?
So going to try and get this mergeable today for 24.2, but coming back to the versioning question: |
Yes, this is currently the way for breaking changes. |
So if I go with this part of @jmchilton's suggestion (i.e. hide the new behavior behind a new third select option), that would qualify for a WORKFLOW_SAFE_TOOL_VERSION_UPDATE and not require a new file then, correct? |
So, I rewrote this to remain compatibility with the old version of the tool and WFs written with the old version can now be executed without issues also when only the new tool version is installed. @jmchilton I considered your fancier configuration ideas, but did not implement them here because:
|
This PR was merged without a "kind/" label, please correct. |
License
This can save a cut step in WFs.
Will provide tests if you think it's useful.