Skip to content

stats_mergejson

Allows you to fuse JSON with different merging possibilities.

Keywords : scilpy, stats, JSON, xlsx, merge


Format : tuple val(meta), path(jsons)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
jsonsfileset of json to merge together.True*.json

Format : tuple val(meta), path(*_stats.json)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'sample1', single_end:false ]True
*_stats.jsonfilejson containing all merged jsons.True*_stats.json

Format : tuple val(meta), path(*_stats.xlsx)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'sample1', single_end:false ]True
*_stats.xlsxfilexlsx containing all merged jsons.True*_stats.xlsx

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versions.Trueversions.yml

TypeDescriptionDefaultChoices
prefixstringdefines the prefix of output files.
suffixstringIt will add an extra string before “_stats.json”_stats
per_pointbooleanIf set, will perform a first operation to remove parent key from all files.False
average_last_layerbooleanIf set, will average all entries (scalar) at the lowest layers, but instead of creating a list it creates a mean/std level.False
recursivebooleanIf set, will merge all entries (scalar) at the lowest layers as a list.False
no_listbooleanIf set, will merge all entries at the top level, if there is a conflict the lowest level will be extended with the new values (if list) or added (if value).False
stats_over_populationbooleanIf set, consider the input stats to be over an entire population and not subject-based.False

DescriptionDOI
scilpyThe Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox.


Last updated : 2025-10-30