quail.stack_eggs

quail.stack_eggs(eggs, meta='concatenate')[source]

Takes a list of eggs, stacks them and reindexes the subject number

Parameters:
eggs : list of Egg data objects

A list of Eggs that you want to combine

meta : string

Determines how the meta data of each Egg combines. Default is ‘concatenate’ ‘concatenate’ concatenates keys in meta data dictionary shared between eggs, and copies non-overlapping keys ‘separate’ keeps the Eggs’ meta data dictionaries separate, with each as a list index in the stacked meta data

Returns:
new_egg : Egg data object

A mega egg comprised of the input eggs stacked together