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_ratio or mms_seg_summary

  • Aggregate their outputs

  • For mms_seg_summary, use agg to 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]

unravel.allen_institute.mapmysections.csv_concat_with_source.parse_args()[source]#
unravel.allen_institute.mapmysections.csv_concat_with_source.main()[source]#