promoter_data / README.md
Robert Calef
Update readme
6d4303f
|
Raw History Blame Contribute Delete
4.16 kB
metadata
pretty_name: promoter_diff experiment resources
tags:
  - genomics
  - dna
  - mpra
  - promoter
configs:
  - config_name: gosai_mpra
    data_files:
      - split: all
        path: datasets/gosai_malinois/processed/training_examples.parquet
  - config_name: promoter_zoo_gene_splits
    data_files:
      - split: train
        path: datasets/PromoterZoo/gene_splits/processed/promoter_zoo_train.parquet
      - split: validation
        path: datasets/PromoterZoo/gene_splits/processed/promoter_zoo_val.parquet
      - split: test
        path: datasets/PromoterZoo/gene_splits/processed/promoter_zoo_test.parquet

promoter_diff experiment resources

Processed Gosai MPRA and PromoterZoo datasets, a Gosai MMseqs reference database, pretrained MPRA oracle weights, and instructions for obtaining the upstream model weights used by promoter_diff.

After cloning or downloading this dataset:

  1. Set the resource directory to the absolute path of your dataset clone:

    export PROMOTER_DIFF_ROOT=/absolute/path/to/promoter-diff-resources
    

    If you cloned with Git, fetch the actual data files using Git LFS:

    git lfs install
    git -C "$PROMOTER_DIFF_ROOT" lfs pull
    
  2. Install the code environment. Install uv if needed, then clone the code repository (or enter your existing checkout):

    git clone https://github.com/rcalef/promoter_diff.git
    cd promoter_diff
    uv sync --locked
    source .venv/bin/activate
    

    Run the remaining Python commands from this activated environment.

  3. Verify the dataset files:

    python "$PROMOTER_DIFF_ROOT/bundle.py" verify
    
  4. Download the upstream model weights. For NTv3, first accept the access conditions on the Hugging Face pages for 100M pre, 650M pre, 100M post, and shared code, then authenticate:

    hf auth login
    python "$PROMOTER_DIFF_ROOT/bundle.py" models
    

    This restores all pinned models and their shared code. To download only the models your experiment needs, pass their folder names, for example:

    python "$PROMOTER_DIFF_ROOT/bundle.py" models Carbon-500M hyenadna-large-1m-seqlen
    python "$PROMOTER_DIFF_ROOT/bundle.py" models NTv3_100M_pre
    

    Gaussian/learned encoders do not require downloaded model weights.

  5. Download MMseqs2 for training-similarity evaluation. On Linux x86_64 with SSE4.1 support, install the official CPU binary without administrator access:

    mkdir -p "$HOME/install"
    curl -fL https://mmseqs.com/latest/mmseqs-linux-sse41.tar.gz \
      -o "$HOME/install/mmseqs-linux-sse41.tar.gz"
    tar -xzf "$HOME/install/mmseqs-linux-sse41.tar.gz" -C "$HOME/install"
    export PATH="$HOME/install/mmseqs/bin:$PATH"
    mmseqs version
    

    This matches the project's default executable path. For other platforms or CPU builds, follow the official MMseqs2 installation instructions. The Gosai reference database is already included; no database download or rebuild is required for the bundled reference.

  6. Set the paths and credentials for your run. Export PROMOTER_DIFF_ROOT and the MMseqs PATH above in each shell or cluster job, and activate the code environment. For Carbon evaluation, override metrics.1.options.weights_dir="$PROMOTER_DIFF_ROOT/model_weights". The pretrained MPRA oracle is included at model_weights/gosai_oracle/oracle-10-935.ckpt; no separate download is needed. When using the Gosai validation metrics, pass val_metrics.0.options.checkpoint_path="$PROMOTER_DIFF_ROOT/model_weights/gosai_oracle/oracle-10-935.ckpt".

    Run wandb login for training logging, or use trainer.dry_run=true to disable logging (this does not shorten training).