aaanalysis.AnnotationPreprocessor.build_cat

AnnotationPreprocessor.build_cat(features=None, dim_names_override=None)[source]

Build the df_cat metadata frame for features (corpus-free).

df_cat[category] is 'PTMs' or 'Functional sites'; df_cat[subcategory] carries the per-key semantic split.

Parameters:
  • features (list of str) – Registry keys, in the order they appear along the D axis.

  • dim_names_override (list of str, optional) – Replacement names for the D columns.

Returns:

df_cat – One row per dimension: scale_id, category, subcategory, scale_name, scale_description.

Return type:

pd.DataFrame, shape (D, 5)