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:
- Open 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
listidentifier(s) - The next
listidentifier(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”:
BThis 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 Definitionbutton and selectPaired-end Indicator- “Paired-end Indicator”:
C
- “Paired-end Indicator”:
- Click
Add Definitionbutton and selectList Identifier(s)- “List Identifier(s)”:
D
- “List Identifier(s)”:
- Click Apply
- Click
- Click Save
- Click Run Tool
The tool will execute and reshape your list, congratulations!
Persistent URL
Resource purlPURL: https://gxy.io/GTN:F00215Still have questions?
Gitter Chat Support
Galaxy Help Forum