-
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
Allow selecting subset of collection by group tag #5457
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fa3a237
WIP: add a SelectTagParameter
mvdbeek 4afbdba
Fix unit tests
mvdbeek 04b0cfc
Make `get_datasets_for_group` case insensitive to tag
mvdbeek 45b2b7f
Merge remote-tracking branch 'jmchilton/dev' into select_tag_parameter
jmchilton d417e9b
Flush out collection tag parameters a bit.
jmchilton e5c5322
Make tag order stable when using group_tag parameters.
jmchilton 6677e7b
Fix failing import/export test for group_tag changes.
jmchilton 5a914b9
Keep all user-selected tags, including duplicates
mvdbeek 95e8a34
Correct copy-pasted docstring
mvdbeek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<tool id="collection_cat_group_tag" name="Concatenate multiple datasets (based on group tag)"> | ||
<description>tail-to-head</description> | ||
<command> | ||
cat | ||
#for $file in $input1.get_datasets_for_group($group): | ||
'$file' | ||
#end for | ||
> '$out_file1' | ||
</command> | ||
<inputs> | ||
<param name="input1" type="data_collection" collection_type="list" label="Concatenate Dataset" multiple="true" /> | ||
<param name="group" type="group_tag" data_ref="input1" /> | ||
</inputs> | ||
<outputs> | ||
<data name="out_file1" format="input" metadata_source="input1"/> | ||
</outputs> | ||
<tests> | ||
</tests> | ||
<help> | ||
</help> | ||
</tool> |
23 changes: 23 additions & 0 deletions
23
test/functional/tools/collection_cat_group_tag_multiple.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<tool id="collection_cat_group_tag_multiple" name="Concatenate multiple datasets (based on group tags)"> | ||
<description>tail-to-head</description> | ||
<command> | ||
cat | ||
#for $group in $groups: | ||
#for $file in $input1.get_datasets_for_group($group): | ||
'$file' | ||
#end for | ||
#end for | ||
> '$out_file1' | ||
</command> | ||
<inputs> | ||
<param name="input1" type="data_collection" collection_type="list" label="Concatenate Dataset" multiple="true" /> | ||
<param name="groups" type="group_tag" data_ref="input1" multiple="true" /> | ||
</inputs> | ||
<outputs> | ||
<data name="out_file1" format="input" metadata_source="input1"/> | ||
</outputs> | ||
<tests> | ||
</tests> | ||
<help> | ||
</help> | ||
</tool> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
So in practice we just make this a list, right ?
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.
I think that one is fine? I think we just drop the
and tag not in tag_list
at https://github.com/galaxyproject/galaxy/pull/5457/files#diff-9baf995401cfeb779edf8731ebaf0d2dR1064.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.
Oh right, I think it was a bit too late for me yesterday ...