rossi_2021 / README.md
cmatkhan's picture
adding _mindel to the appropriate applies_to metadata
21b6c08
metadata
license: mit
tags:
  - transcription-factor
  - binding
  - chipexo
  - genomics
  - biology
language:
  - en
pretty_name: Rossi ChIP-exo 2021
experimental_conditions:
  temperature_celsius: 25
  cultivation_method: unspecified
  growth_phase_at_harvest:
    phase: mid_log
    od600: 0.8
  media:
    name: yeast_peptone_dextrose
    carbon_source:
      - compound: D-glucose
        concentration_percent: unspecified
    nitrogen_source:
      - compound: yeast_extract
        concentration_percent: unspecified
      - compound: peptone
        concentration_percent: unspecified
  heat_shock:
    induced: true
    temperature_celsius: 37
    duration_minutes: 6
    pre_induction_temperature_celsius: 25
    method: equal_volume_medium_transfer
doi: https://doi.org/10.1038/s41586-021-03314-8
citation: >-
  Rossi, MJ, Kuntala, PK, Lai, WKM, Yamada, N, Badjatia, N, Mittal, et al. 2021.
  A high-resolution protein architecture of the budding yeast genome. Nature.
features:
  - applies_to:
      - rossi_2021_metadata_replicate
      - rossi_2021_metadata_sample
    fields:
      - name: treatment
        dtype: string
        description: >-
          Experimental treatment applied prior to ChIP-exo. The majority of
          samples are untreated; a subset of SAGA-associated factors received a
          brief heat shock (equal volume of 37°C medium mixed into a 25°C
          culture, 6 min at 37°C).
        role: experimental_condition
      - name: growth_media
        dtype: string
        description: >-
          Growth medium used in the experiment, as reported in
          yeastepigenome.org sample metadata. The majority of samples used YPD
          (rich medium).
        role: experimental_condition
  - applies_to:
      - rossi_2021_metadata_replicate
      - rossi_2021_metadata_sample
      - rossi_2021_af_replicates
      - rossi_2021_af_combined
      - rossi_2021_af_replicates_mindel
      - rossi_2021_af_combined_mindel
    fields:
      - name: regulator_locus_tag
        dtype: string
        description: Systematic gene name (ORF identifier) of the transcription factor
      - name: regulator_symbol
        dtype: string
        description: Standard gene symbol of the transcription factor
  - applies_to:
      - rossi_2021_af_replicates
      - rossi_2021_af_combined
      - rossi_2021_af_replicates_mindel
      - rossi_2021_af_combined_mindel
    fields:
      - name: target_locus_tag
        dtype: string
        description: Systematic gene identifier for the target gene
        role: target_identifier
      - name: target_symbol
        dtype: string
        description: Standard gene symbol for the target gene
        role: target_identifier
      - name: seqnames
        dtype: string
        description: Chromosome identifier (e.g., chrI, chrII, chrXVI)
      - name: start
        dtype: int64
        description: Promoter region start position (1-based coordinate)
      - name: end
        dtype: int64
        description: Promoter region end position (1-based, inclusive)
      - name: background_counts
        dtype: int64
        description: Read counts in the background/control sample for this peak region
        role: quantitative_measure
      - name: experiment_counts
        dtype: int64
        description: Read counts in the ChIP-exo experiment sample for this peak region
        role: quantitative_measure
      - name: total_background_counts
        dtype: int64
        description: Total read counts across the entire genome in the background sample
        role: quantitative_measure
      - name: total_experiment_counts
        dtype: int64
        description: Total read counts across the entire genome in the experiment sample
        role: quantitative_measure
      - name: enrichment
        dtype: float64
        description: Enrichment score for the binding peak
        role: quantitative_measure
      - name: poisson_pval
        dtype: float64
        description: P-value from Poisson distribution test for peak significance
        role: quantitative_measure
      - name: log_poisson_pval
        dtype: float64
        description: Log-transformed Poisson p-value
        role: quantitative_measure
      - name: hypergeometric_pval
        dtype: float64
        description: P-value from hypergeometric distribution test for peak significance
        role: quantitative_measure
      - name: log_hypergeometric_pval
        dtype: float64
        description: Log-transformed hypergeometric p-value
        role: quantitative_measure
      - name: poisson_qval
        dtype: float64
        description: FDR-adjusted q-value from Poisson test (multiple testing correction)
        role: quantitative_measure
      - name: hypergeometric_qval
        dtype: float64
        description: >-
          FDR-adjusted q-value from hypergeometric test (multiple testing
          correction)
        role: quantitative_measure
  - applies_to:
      - rossi_2021_af_replicates_mindel
      - rossi_2021_af_combined_mindel
    fields:
      - name: width
        dtype: int64
        description: Width of the promoter region
      - name: strand
        dtype: string
        description: Genomic strand of the promoter region (+ or -)
      - name: mindel_name
        dtype: string
        description: Name of the promoter region as defined in the Mindel promoters
      - name: promoter_sequence
        dtype: string
        description: Nucleotide sequence of the promoter region
      - name: in_mahendrawada_features
        dtype: bool
        description: >-
          TRUE if the promoter region was used in Mahendrawada 2025. Note that
          this is equivalent to protein coding non dubious ORF
      - name: promoter_exact_aligns
        dtype: int64
        description: >-
          this is a feature from the Mindel data that I have not documented. It
          is a TODO.
configs:
  - config_name: rossi_2021_metadata_replicate
    description: Metadata describing the tagged regulator in each experiment
    dataset_type: metadata
    applies_to:
      - genome_map
    data_files:
      - split: train
        path: rossi_2021_metadata.parquet
    dataset_info:
      features:
        - name: accession
          dtype: string
          description: GEO run accession identifier for the sample
          role: sample_id
        - name: sample_id
          dtype: int64
          description: >-
            Unique identifier for the biological replicate. Note this is the 
            same as the sample_id in rossi_2021_metadata_sample
        - name: yeastepigenome_id
          dtype: float64
          description: Sample identifier used by yeastepigenome.org
        - name: antibody
          dtype: string
          description: Antibody used for ChIP-exo immunoprecipitation
  - config_name: rossi_2021_metadata_sample
    description: >-
      Sample-level metadata for combined ChIP-exo experiments including
      experimental conditions
    dataset_type: metadata
    applies_to:
      - rossi_2021_af_combined
      - rossi_2021_af_combined_mindel
    data_files:
      - split: train
        path: rossi_2021_metadata_sample.parquet
    dataset_info:
      features:
        - name: sample_id
          dtype: int64
          description: Unique identifier combining regulator and replicates
        - name: multi_antibody
          dtype: bool
          description: >-
            TRUE if the set of replicates includes more than one type of
            antibody
        - name: antibody
          dtype: string
          description: >-
            Antibody used for ChIP-exo immunoprecipitation. If multi_antibody is
            TRUE, then the antibodies in the set are separated by `;`
  - config_name: genome_map_control_meta
    description: Sample accession metadata for ChIP-exo input/control coverage tracks
    dataset_type: metadata
    applies_to:
      - genome_map_control
    data_files:
      - split: train
        path: genome_map_control_meta.parquet
    dataset_info:
      features:
        - name: accession
          dtype: string
          description: SRA run accession identifier for the control sample
        - name: yeastepigenome_id
          dtype: float64
          description: Sample identifier used by yeastepigenome.org
  - config_name: genome_map
    description: ChIP-exo 5' tag coverage data partitioned by sample accession
    dataset_type: genome_map
    data_files:
      - split: train
        path: genome_map/*/*.parquet
    dataset_info:
      features:
        - name: accession
          dtype: string
          description: GEO run accession identifier for the sample (partitioning column)
        - name: chr
          dtype: string
          description: Chromosome name (e.g., chrI, chrII, etc.)
        - name: pos
          dtype: int32
          description: Genomic position of the 5' tag
        - name: pileup
          dtype: int32
          description: Depth of coverage (number of 5' tags) at this genomic position
  - config_name: genome_map_control
    description: >-
      ChIP-exo 5' tag coverage data for input/control samples, partitioned by
      sample accession
    dataset_type: genome_map
    data_files:
      - split: train
        path: genome_map_control/*/*.parquet
    dataset_info:
      features:
        - name: accession
          dtype: string
          description: GEO run accession identifier for the sample (partitioning column)
        - name: chr
          dtype: string
          description: Chromosome name (e.g., chrI, chrII, etc.)
        - name: pos
          dtype: int32
          description: Genomic position of the 5' tag
        - name: pileup
          dtype: int32
          description: Depth of coverage (number of 5' tags) at this genomic position
  - config_name: rossi_2021_af_replicates
    description: >-
      ChIP-exo annotated features at biological replicate level with binding
      peaks and statistical significance metrics
    dataset_type: annotated_features
    genome_resources:
      region_sets:
        Kang:
          path: >-
            https://huggingface.co/datasets/BrentLab/yeast_genome_resources/blob/main/yiming_promoters.bed
          join_column: target_locus_tag
    data_files:
      - split: train
        path: rossi_2021_af_replicates.parquet
    dataset_info:
      features:
        - name: sample_id
          dtype: int64
          description: Unique identifier for the biological replicate
          role: sample_id
        - name: run_accession
          dtype: string
          description: SRA run accession identifier for this biological replicate
  - config_name: rossi_2021_af_replicates_mindel
    description: >-
      ChIP-exo annotated features at biological replicate level with binding
      peaks and statistical significance metrics
    dataset_type: annotated_features
    genome_resources:
      region_sets:
        Mindel:
          path: >-
            https://huggingface.co/datasets/BrentLab/yeast_genome_resources/blob/main/mindel_promoters.csv.gz
          join_column: target_locus_tag
    data_files:
      - split: train
        path: rossi_2021_af_replicates_mindel.parquet
    dataset_info:
      features:
        - name: sample_id
          dtype: int64
          description: Unique identifier for the biological replicate
          role: sample_id
        - name: run_accession
          dtype: string
          description: SRA run accession identifier for this biological replicate
  - config_name: rossi_2021_af_combined
    description: >-
      Combined ChIP-exo annotated features with binding peaks and statistical
      significance metrics aggregated across biological replicates
    dataset_type: annotated_features
    genome_resources:
      region_sets:
        Kang:
          path: >-
            https://huggingface.co/datasets/BrentLab/yeast_genome_resources/blob/main/yiming_promoters.bed
          join_column: target_locus_tag
    data_files:
      - split: train
        path: rossi_2021_af_combined.parquet
    dataset_info:
      features:
        - name: sample_id
          dtype: int64
          description: Unique identifier combining regulator and replicates
          role: sample_id
  - config_name: rossi_2021_af_combined_mindel
    description: >-
      Combined ChIP-exo annotated features with binding peaks and statistical
      significance metrics aggregated across biological replicates
    dataset_type: annotated_features
    genome_resources:
      region_sets:
        Mindel:
          path: >-
            https://huggingface.co/datasets/BrentLab/yeast_genome_resources/blob/main/mindel_promoters.csv.gz
          join_column: target_locus_tag
    data_files:
      - split: train
        path: rossi_2021_af_combined_mindel.parquet
    dataset_info:
      features:
        - name: sample_id
          dtype: int64
          description: Unique identifier combining regulator and replicates
          role: sample_id

Rossi 2021

This data is gathered from yeastepigenome.org. This work was published in

Rossi MJ, Kuntala PK, Lai WKM, Yamada N, Badjatia N, Mittal C, Kuzu G, Bocklund K, Farrell NP, Blanda TR, Mairose JD, Basting AV, Mistretta KS, Rocco DJ, Perkinson ES, Kellogg GD, Mahony S, Pugh BF. A high-resolution protein architecture of the budding yeast genome. Nature. 2021 Apr;592(7853):309-314. doi: 10.1038/s41586-021-03314-8. Epub 2021 Mar 10. PMID: 33692541; PMCID: PMC8035251.

Accessing Data

The examples below require labretriever (pip install labretriever) and/or the HuggingFace Hub client (pip install huggingface_hub).

Accessing Data with labretriever

This repository is part of a collection configured as a unified database using labretriever.VirtualDB. Download the collection config and use it to query the data directly in Python, or with an AI assistant using the labretriever plugin.

from labretriever.virtual_db import VirtualDB
from labretriever.datacard import DataCard

# Citation and metadata
card = DataCard("BrentLab/rossi_2021")
info = card.info()
print(info["doi"])
print(info["citation"])

# path to the downloaded brentlab_yeast_collection.yaml
vdb = VirtualDB("/path/to/brentlab_yeast_collection.yaml")

print(vdb.get_dataset_description("rossi"))
vdb.query("SELECT * FROM rossi LIMIT 5")

Direct parquet access

The repository contains more data than what is exposed through the collection configuration. Use DataCard.info() to inspect available files, then download and query with DuckDB.

Most files in this repository are single parquet files and can be read directly:

from huggingface_hub import snapshot_download
import duckdb

repo_path = snapshot_download(
    repo_id="BrentLab/rossi_2021",
    repo_type="dataset",
    allow_patterns="rossi_2021_af_combined.parquet",
)
conn = duckdb.connect()
# returns a pandas DataFrame with the first 5 rows
conn.execute(
    "SELECT * FROM read_parquet(?) LIMIT 5",
    [f"{repo_path}/rossi_2021_af_combined.parquet"],
).df()

Accessing using R

Clone the repository and read parquet files directly with arrow:

# install.packages("arrow")
arrow::read_parquet("rossi_2021_af_combined.parquet")