Bases: BaseProcessor

Processor for Gu 2023 expert-curated annotations.

Provides manually curated tissue and disease annotations for SRA samples.

process(output_dir, **kwargs)

Process Gu 2023 annotations into standardized format.

Parameters:
  • output_dir (Path) –

    Directory where the processed parquet file will be written.

  • **kwargs (Any, default: {} ) –

    input_path (Path) - override Gu 2023 CSV input file

Returns:
  • DataFrame

    Standardized annotations with columns sample_id, annotation_type, term_id, term_label, and ecode.

validate(data)

Validate processed Gu 2023 data.

Parameters:
  • data (DataFrame) –

    Processed annotations DataFrame to validate.

Returns:
  • bool

    True if validation passes.

Raises: