Flatten a list of list of paired datasets into a list of paired datasets
Sometimes you find yourself with a list:list:paired
, i.e. a collection of collection of paired end data, and you really want a list:paired
, a flatter collection of paired end data. This is easy to resolve with Apply rules Tool: APPLY_RULES :
- Open Apply rules Tool: APPLY_RULES
- Select your collection
- Click Edit
You’ll now be in the Apply rules editing interface. There are three columns (if it’s a list:list:paired
)
- The outermost
list
identifier(s) - The next
list
identifier(s) - The paired-end indicator
Flattening this top level list, so it’s just a list:paired
requires a few changes:
- From Column menu select
Concatenate Columns
- “From Column”:
A
- “From Column”:
B
This creates a column with the top list identifier, and the inner list identifier, which will be our new list identifier for the flattened list.
- “From Column”:
- From Rules menu select
Add / Modify Column Definitions
- Click
Add Definition
button and selectPaired-end Indicator
- “Paired-end Indicator”:
C
- “Paired-end Indicator”:
- Click
Add Definition
button and selectList Identifier(s)
- “List Identifier(s)”:
D
- “List Identifier(s)”:
- Click Apply
- Click
- Click Save
- Click Execute
The tool will execute and reshape your list, congratulations!
Still have questions?
Gitter Chat Support
Galaxy Help Forum
Want to embed this snippet (FAQ) in your GTN Tutorial?
{% snippet topics/galaxy-interface/faqs/flatten-list-list-paired-to-list-paired.md %}