neuralib.atlas.util.get_margin_merge_level

neuralib.atlas.util.get_margin_merge_level(df, areas, margin)[source]

Get the lowest or highest merge level (i.e., parsed_csv) containing all the regions

Parameters:
  • df (DataFrame) – parsed csv

  • areas (list[str] | str) – an area or a list of areas

  • margin (Literal['lowest', 'highest']) – get the either lowest of highest merge level for a given area

Returns:

col name if parsed csv

Return type:

str