unravel.allen_institute.mapmysections.csv_concat_with_source module#
Use mms_concat_with_source or mms_c from UNRAVEL to concatenate multiple CSV files, include a ‘source_file’ column, and sort rows by that column.
- Prereqs:
mms_soma_ratioormms_seg_summaryAggregate their outputs
For
mms_seg_summary, useaggto aggregate results across samples and cd to the target directory.
Note
This command loads all matching CSV files.
It adds a ‘source_file’ column (file stem).
It handles empty files by filling rows with 0s for all expected columns.
It sorts all rows by ‘source_file’.
Usage:#
csv_concat_with_source [-i ‘<asterisk>.csv’] [-o output.csv] [-v]