Skip to content
ciceklabPublic

About

RPI-Zero: Zero-shot RNA-Protein Interaction Prediction

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

RPI-Zero

RPI-Zero predicts whether a protein binds an RNA. It takes the amino acid sequence of the protein and the nucleotide sequence of the RNA, and returns a binding probability. It uses sequence only, so it can score proteins and RNAs that have no known interactions, and one model covers all proteins.

This repository holds the code that builds the benchmark from the raw CLIP data, the model, the training and evaluation scripts, the trained model, and the code that retrains the five compared methods on the benchmark (compared_methods/).

Model

[CLS] protein $ RNA [EOS]   (at most 4,096 tokens)
            │
            ▼
RNA-X encoder (14 layers, width 768, frozen)
            │
            ├── protein embeddings ── mean ── protein vector p
            │                                   │
            │                     router: weights a_k over 16 motif prototypes
            │                                   │
            └── RNA embeddings ── 5 depthwise convolutions (kernel 129), gated by Σ a_k μ_k
                                                │
                     nucleotide logits s_j = position term + motif score
                                             + protein term + RNA term
                                                │
                     41-nt window mean ─ length-corrected log-sum-exp ─ w·z + b
                                                │
                                        pair logit g, probability σ(g)
  • Encoder. RNA-X reads the protein and the RNA in one input, so the RNA embeddings already depend on the protein. Its weights are frozen. A transcript that does not fit in the input is cut into overlapping parts of 4093 - protein length nucleotides on a fixed grid, and each part is scored as one example.
  • Head (src/layers/motif_prototype_head.py, 2.0 M parameters). The mean protein embedding gives weights over 16 learned motif prototypes shared by all proteins. The weighted prototype mixture gates five long depthwise convolutions over the RNA (641 nt receptive field) and scores each nucleotide against the prototypes. A new protein is therefore described with the same prototypes as the training proteins.
  • Pooling (src/layers/pooling.py). The nucleotide logits are averaged over a 41 nt window and pooled with a log-sum-exp that has a learned temperature and a -log(length) correction, so a longer RNA does not score higher only because it is longer. Two scalars turn the pooled score into the pair logit.
  • Training (train.py). The loss is L_nt + λ(t) · L_pair. L_nt is a weighted binary cross-entropy on the nucleotide logits against the CLIP peak labels (positive weight 49.06), and L_pair is the binary cross-entropy of the pair logit. λ is 0 for the first 15,400 steps, rises linearly to 10 over the next 15,400 steps and then stays at 10. At step 15,400 the two pooling scalars are refitted on 2,048 training examples. Each batch is balanced in proteins (draws per protein proportional to n_p^0.5) and in labels (half positive, half negative). Examples are drawn without replacement, and 154,000 steps visit every training example. The checkpoint with the highest mean protein-macro AUROC over the three validation slices is kept, and the decision threshold is the one that maximises the mean MCC over the three validation slices.

Benchmark

The benchmark is built from 11.6 million CLIP peaks of 209 human RNA-binding proteins (CLIPdb, ENCODE eCLIP, POSTAR3 and POSTAR2).

  1. For each gene with a peak, one transcript is chosen (MANE Select, then Ensembl canonical, then the longest; GENCODE release 50) and its spliced sequence is rebuilt from hg38. A peak is kept only if it lies fully inside one exon.
  2. Each transcript is cut into overlapping parts on a fixed grid. An example is a (part, protein) pair, and it is positive if the part holds a whole peak of the protein. Nucleotides inside a peak are labelled 1; a peak cut by a part border is masked.
  3. Transcripts are clustered with MMseqs2 (80% identity) and proteins with MMseqs2 (30% identity). Whole clusters go to the training, validation and test buckets, which gives slices with unseen RNAs, unseen proteins and unseen pairs.
  4. Negatives are parts of a bound transcript that hold no peak of the protein, and parts of transcripts the protein does not bind at all. The second kind is matched to the positives of the same protein in RNA length and in the number of other proteins that bind the transcript.
Slice Examples Positives Transcripts Proteins
train 1,169,793 562,637 23,196 161
probe_val (monitor) 30,295 14,586 637 160
valid_unseen_rna 149,016 71,906 3,004 161
valid_unseen_protein 221,288 96,668 20,572 24
valid_unseen_pair 27,307 11,903 2,567 23
test_unseen_rna 177,838 83,584 3,149 184
test_unseen_protein 269,408 117,336 24,099 24
test_unseen_pair 29,808 12,830 2,755 24

Results

Released checkpoint checkpoints/rpi_zero.pt, step 154,000, every row of each test slice, threshold 0.4391 chosen on validation. PM: protein-macro. A protein-macro metric is computed on the examples of each protein with at least 10 positive and 10 negative examples, and then averaged over these proteins with equal weight. AUPRC is the trapezoidal area under the precision-recall curve (auprc and protein_macro_auprc in test_metrics.json).

Test slice Examples Proteins PM-AUROC PM-AUPRC AUROC AUPRC Accuracy F1 MCC
Unseen RNA 177,838 180 0.758 0.681 0.769 0.753 0.691 0.689 0.385
Unseen protein 269,408 24 0.708 0.606 0.724 0.637 0.660 0.642 0.326
Unseen pair 29,808 23 0.680 0.578 0.680 0.589 0.634 0.589 0.260

Repository layout

RPI-Zero/
├── data_prep/                  raw CLIP data -> seven split files, GENCODE table
│   ├── cluster_proteins.sh       MMseqs2 protein clusters (30% identity)
│   ├── cluster_peak_rnas.sh      CD-HIT-EST peak sequence clusters (80% identity)
│   ├── assign_splits.py          first cluster-level split of the interactions
│   ├── balance_protein_split.py  protein split balanced in pairs (161/24/24 proteins)
│   ├── generate_negatives.py     peak-length balancing; the build keeps its positives
│   └── build_transcript_table.py GENCODE GTF -> transcript table
├── build_dataset/              the benchmark build, stages a to f
│   ├── stage_a_peaks.py          index all peaks
│   ├── stage_b_transcripts.py    choose and rebuild one transcript per gene
│   ├── stage_c_chunks.py         (part, protein) examples and their labels
│   ├── stage_d_split.py          RNA split from transcript clusters, slices
│   ├── stage_e_negatives.py      matched negatives from unbound transcripts
│   ├── stage_f_stats.py          one parquet per slice, pos_weight
│   └── check_slices.py           checks on every example of the final slices
├── scripts/
│   ├── prepare_data.sh           runs the whole data pipeline
│   └── cluster_transcripts.sh    MMseqs2 transcript clusters (80% identity)
├── src/
│   ├── models/                   RNA-X encoder and its loader
│   ├── layers/                   RNA-X layers, RPI-Zero head, pooling
│   ├── data/                     dataset and batch sampler
│   └── utils/                    tokenizer, losses, metrics, logger
├── train.py                    training, threshold tuning and test scoring
├── evaluate.py                 scores a trained checkpoint
├── checkpoints/                trained head (rpi_zero.pt) and its settings
├── weights/rnax/               RNA-X config; place model.safetensors here
├── examples/                   toy example that runs without the RNA-X weights
│   ├── toy_example.py            runs the head on the stored embeddings, on a CPU
│   ├── make_toy_data.py          writes data/hnrnpl_triobp.npz (needs RNA-X and the benchmark)
│   └── data/hnrnpl_triobp.npz    RNA-X embeddings of one RNA part with five proteins
├── tests/                      unit tests
└── compared_methods/           retraining of the compared methods
    ├── ipminer/                  each method: configs/, scripts/, src/, environment.yml, requirements.txt
    ├── npi_gnn/
    ├── zhmolgraph/
    ├── coral/
    └── zhmoltoporpi/

Installation

conda env create -f environment.yml
conda activate rpi-zero
pip install flash-attn==2.8.3 --no-build-isolation

RNA-X uses FlashAttention, so training and evaluation need a CUDA GPU. The data pipeline runs on CPU. MMseqs2, CD-HIT and samtools are installed by the environment file.

Training and evaluation need the pretrained RNA-X weights. They are on Zenodo (https://doi.org/10.5281/zenodo.24343869) in weights.zip. The archive is 3.9 GB and also holds RNA-X models and files that RPI-Zero does not use. RPI-Zero needs only weights/checkpoint/model.safetensors (544 MB), which goes into weights/rnax/, next to the config.json that is already there:

curl -L -o weights.zip https://zenodo.org/records/24343870/files/weights.zip
unzip -j weights.zip weights/checkpoint/model.safetensors -d weights/rnax/
rm weights.zip

If you keep the weights in another folder, pass it with --checkpoint-path to train.py and evaluate.py, or with --rnax to examples/make_toy_data.py. The toy example below runs without the RNA-X weights.

Toy example

The toy example starts from precomputed RNA-X embeddings, so it runs on a CPU without the RNA-X weights. examples/data/hnrnpl_triobp.npz holds the embeddings of one RNA part with five proteins, and examples/toy_example.py runs the released head on them.

python examples/toy_example.py
python examples/toy_example.py --plot toy_example.png    # needs matplotlib

The RNA is a 3,504-nt part of the TRIOBP mRNA, the case study of the paper (Section 3.6). The Ground Truth Label is 1 if the part holds a whole peak bound by the protein. Part of the output:

Protein  Bucket    Ground Truth Label  Probability  Prediction  CA runs - rest   Highest 41-nt window
HNRNPL   train                      1        0.996       binds           10.55   1,496-1,536
ZNF622   train                      1        0.595       binds           -1.47   322-362
SRSF3    test                       1        0.667       binds            0.32   1,868-1,908
HNRNPD   valid                      0        0.126          no           -1.96   1,632-1,672
FUBP3    train                      0        0.011          no           -2.58   1,662-1,702

For the three proteins with a Ground Truth Label of 1, the highest-scoring window lies on one of their own peaks.

Nucleotide logits of the TRIOBP part with five proteins

RNA-X reads the protein and the RNA in one input, so the stored embeddings work only for these five pairs. examples/make_toy_data.py wrote the file with the RNA-X weights.

Reproducing the results

All commands run from the repository root.

1. Data

The data are on Zenodo (https://zenodo.org/records/23748141) as three archives. Each archive extracts into data/, so extract it in the repository root:

Archive Contents Go on with
rpi_zero_benchmark.tar.gz the final benchmark (data/chunks/stage_f/, data/chunks/stage_b/) and data/raw/clipdb/target.fa step 3 (train) or step 4 (evaluate)
rpi_zero_splits.tar.gz the seven split files, the protein assignment and the transcript clusters stages a to f of the build, see below
clip_peaks_raw.tar.gz the CLIP peak collection, data/raw/clipdb/ step 2

To rebuild the benchmark from rpi_zero_splits.tar.gz, add target.fa from one of the other two archives, hg38 and the GENCODE annotation (below), and run:

python data_prep/build_transcript_table.py --verify
python -m build_dataset --output-dir data/chunks --stages a,b,c,d,e,f \
    --cluster-tsv data/chunks/clusters/transcript_mmseqs_cluster.tsv
python -m build_dataset.check_slices --data-dir data/chunks

The whole pipeline (step 2) starts from these raw files under data/raw/:

data/raw/
├── clipdb/
│   ├── interactions.txt     CLIP peaks: RNA_ID (name::chrom:start-end(strand)) and target_ID
│   ├── RNA.fa               peak sequences
│   └── target.fa            protein sequences (209 proteins)
├── hg38/
│   ├── hg38.fa
│   └── hg38.fa.fai
└── gencode/
    └── gencode.v50.primary_assembly.annotation.gtf.gz
  • CLIP collection: clip_peaks_raw.tar.gz on Zenodo.
  • hg38: https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz, then gunzip hg38.fa.gz && samtools faidx hg38.fa.
  • GENCODE release 50: https://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/release_50/gencode.v50.primary_assembly.annotation.gtf.gz.

2. Build the benchmark

bash scripts/prepare_data.sh 16    # 16 worker processes for stage C

The script runs these steps in order:

Step Command Output
Protein clusters data_prep/cluster_proteins.sh data/interim/protein_clusters/ (181 clusters)
Peak clusters data_prep/cluster_peak_rnas.sh data/interim/rna_clusters/
First split data_prep/assign_splits.py data/interim/splits_clustered/
Balanced protein split data_prep/balance_protein_split.py data/interim/splits_balanced/
Peak-length balancing data_prep/generate_negatives.py data/interim/splits_with_negatives/
Transcript table data_prep/build_transcript_table.py data/interim/transcript_table.parquet
Stages a, b, c python -m build_dataset --stages a,b,c data/chunks/stage_{a,b,c}/
Transcript clusters scripts/cluster_transcripts.sh data/chunks/clusters/
Stages d, e, f python -m build_dataset --stages d,e,f data/chunks/stage_f/chunks_<slice>.parquet
Data checks python -m build_dataset.check_slices data/chunks/stage_f/checks.json

CD-HIT-EST on the 11.9 million peak sequences is the slowest step (about 1,600 CPU hours). The build stages a to f take about 20 minutes with 16 workers. The build is deterministic: from the same inputs, stages a to f write byte-identical files. data/chunks/stage_f/qc_summary.json reports the slice sizes and the pos_weight (49.06); the slice sizes should match the table above. The last step checks every example of every slice: each transcript and each protein is in one bucket only, no cross-transcript negative pairs a transcript with a protein that has a positive example on it, the labels agree with the peak intervals, and every example fits the 4,096-token input. It stops the script if a check fails, and it prints where the peak centres lie in the parts.

generate_negatives.py also writes peak-level negatives, but the build reads only the positives of its output files. Each build_dataset stage writes a _stage_<x>.done.json file, so a rerun skips finished stages; --force reruns them.

3. Train

python train.py --data-dir data/chunks --output-dir outputs/rpi_zero

The defaults are the settings of the released model (checkpoints/rpi_zero_config.json). Training takes about 12 hours on one NVIDIA RTX PRO 6000 GPU, and scoring every validation and test row afterwards takes about 2.5 more hours. The output directory holds:

  • best_head.pt: the selected checkpoint
  • run_config.json, train_log.jsonl, eval_logs/step_<N>.json
  • threshold.json: the threshold and the validation metrics at it
  • test_metrics.json: all test metrics, per slice and for all test slices pooled (the auprc and protein_macro_auprc keys are the AUPRC of the paper; ap is the average precision)
  • valid_predictions/ and test_predictions/: one parquet per slice with chunk_id, target_id, label, logit and probability for every example

GPU kernels are not bitwise deterministic, so a new run gives numbers close to, but not identical with, the released checkpoint.

4. Evaluate the released checkpoint

python evaluate.py --checkpoint checkpoints/rpi_zero.pt --data-dir data/chunks \
    --output-dir outputs/rpi_zero_eval

This tunes the threshold on every validation row and then scores every test row, and it writes the same files as the end of training. --test-threshold 0.4391193185140614 skips the validation pass and uses the released threshold, which is also stored in the checkpoint under threshold.

Compared methods

compared_methods/ holds the code that retrained the five compared methods of the paper on the benchmark. Each method is trained from scratch on the training slice with its own features, architecture and training procedure. Checkpoint selection and threshold tuning use only the validation slices, and each method scores every row of the three test slices once.

Method Original code Folder Hardware
IPMiner xypan1232/IPMiner @ 68aa6d7 compared_methods/ipminer CPU
NPI-GNN AshuiRUA/NPI-GNN @ 2f55da0 compared_methods/npi_gnn 1 GPU
ZHMolGraph Zhaolab-GitHub/ZHMolGraph @ cb9ab07 compared_methods/zhmolgraph 2 GPUs for embeddings, then 1 GPU
CORAL MarioCatalano99/Coral @ 9f8fc4f compared_methods/coral 1 to 4 GPUs
ZHMolTopoRPI Zhaolab-GitHub/ZHMolTopoRPI @ b37c300 compared_methods/zhmoltoporpi 1 GPU

IPMiner and NPI-GNN are re-implemented in PyTorch and do not need the original code. ZHMolGraph and CORAL import the original code from a clone of the repository at the commit above. ZHMolTopoRPI ports the original model and checks the commit of its clone before the test evaluation. The clone commands are in the sections below.

Setup

The compared methods need their own environments: they ran on Python 3.10 (ZHMolGraph requires it), and their package versions conflict with environment.yml and with each other (ZHMolGraph needs numpy 1.22 and transformers 4.35). Each folder has a requirements.txt with every package of the environment that produced the results, and an environment.yml that installs it on Python 3.10:

conda env create -f compared_methods/<method>/environment.yml    # environment rpi-zero-<method>
conda activate rpi-zero-<method>

Every method reads the benchmark from data/chunks and the protein sequences from data/raw/clipdb/target.fa, so build the benchmark first (step 2 of "Reproducing the results"). Each method writes only inside its own folder (cache/, data/, manifests/, runs/, checkpoints/, logs/). Pretrained encoders (RNA-FM, ProtT5, DNABERT-2, ESM-2) are downloaded into the folder's cache/ on first use. CORAL reads the sequence manifest that ZHMolGraph writes in its first step, so run zhmolgraph/scripts/build_sequence_manifest.py before the CORAL input build.

Test results

Every row of each test slice. PM: protein-macro, the mean over proteins with at least 10 positive and 10 negative examples.

Slice Method PM-AUROC PM-AUPRC AUROC AUPRC Accuracy F1 MCC
Unseen RNA IPMiner 0.711 0.626 0.731 0.713 0.664 0.604 0.323
NPI-GNN 0.465 0.405 0.594 0.564 0.586 0.472 0.161
ZHMolGraph 0.589 0.513 0.593 0.562 0.587 0.498 0.163
CORAL 0.662 0.565 0.720 0.704 0.656 0.593 0.307
ZHMolTopoRPI 0.729 0.643 0.756 0.733 0.686 0.650 0.367
Unseen protein IPMiner 0.675 0.579 0.666 0.593 0.624 0.414 0.214
NPI-GNN 0.535 0.471 0.568 0.510 0.580 0.357 0.106
ZHMolGraph 0.583 0.497 0.599 0.533 0.591 0.510 0.161
CORAL 0.635 0.532 0.650 0.560 0.608 0.371 0.174
ZHMolTopoRPI 0.640 0.539 0.641 0.551 0.609 0.570 0.214
Unseen pair IPMiner 0.608 0.503 0.605 0.512 0.580 0.185 0.080
NPI-GNN 0.462 0.386 0.534 0.483 0.570 0.000 0.000
ZHMolGraph 0.581 0.492 0.589 0.520 0.592 0.481 0.151
CORAL 0.638 0.542 0.657 0.563 0.614 0.371 0.182
ZHMolTopoRPI 0.609 0.513 0.616 0.529 0.591 0.531 0.168

Decision thresholds: 0.5 for IPMiner, NPI-GNN and CORAL, as in their original code. ZHMolGraph uses 0.392, the threshold that maximises the mean MCC over the three validation slices (the rule used for RPI-Zero). ZHMolTopoRPI uses the threshold search of its original code on the validation slice that matches each test slice (0.50, 0.49 and 0.49).

IPMiner

Stacked autoencoders and a fine-tuning network on k-mer features, three random forests and a logistic-regression stack, with the settings of configs/ipminer_stage1.json. All 100 fine-tuning epochs are trained, and the epoch with the lowest mean validation cross-entropy is kept.

cd compared_methods/ipminer
export CUDA_VISIBLE_DEVICES=""
python scripts/ipminer_stage1.py features --set trainval
python scripts/ipminer_stage1.py train
python scripts/ipminer_stage1.py features --set test
python scripts/ipminer_stage1.py evaluate-test

Metrics: runs/ipminer_v1/metrics/test/v2/ (overall.csv, protein_macro.csv), model ipminer, population all_rows.

NPI-GNN

A graph of the training pairs, node2vec embeddings, k-mer node features and 1-hop enclosing subgraphs classified by a SAGEConv and TopK pooling network (configs/train_v1.json). The model is trained for 50 epochs and checked every 5 epochs; the check with the highest mean validation MCC is kept. RNAs and proteins without training edges get a zero node2vec vector.

cd compared_methods/npi_gnn
python scripts/build_node2vec.py
python scripts/build_feature_banks.py
CUDA_VISIBLE_DEVICES=0 python scripts/train_npignn.py
CUDA_VISIBLE_DEVICES=0 python scripts/evaluate_test.py

An interrupted training continues with --resume. Both GPU scripts check the free GPU memory first (--min-free-gib, 50 GiB for training and 30 GiB for the test). Metrics: runs/test_eval_v1/ (metrics_overall.csv, metrics_protein_macro.csv).

ZHMolGraph

RNA-FM and ProtT5 embeddings, a GraphSAGE network trained on the graph of the RNAs and proteins, and a feed-forward classifier (VecNN) on the joined embeddings. The classifier is checked every 10,000 steps on fixed validation samples and stops after five checks without improvement. The GraphSAGE and VecNN stages must run on the same GPU model.

cd compared_methods/zhmolgraph
git clone https://github.com/Zhaolab-GitHub/ZHMolGraph upstream && git -C upstream checkout cb9ab07
python -B scripts/build_sequence_manifest.py
python -B scripts/run_full_embeddings_2gpu.py     # downloads RNA-FM and ProtT5, then embeds on two GPUs
python -B scripts/audit_graph_inputs.py
python -B scripts/build_training_graph.py
python -B scripts/build_original_graph.py
python -B scripts/verify_original_graph.py
python -B scripts/prepare_validation.py
python -B scripts/verify_validation.py
CUDA_VISIBLE_DEVICES=0 python -B scripts/train_original.py      # GraphSAGE and graph-feature export
CUDA_VISIBLE_DEVICES=0 python -B scripts/train_vecnn_steps.py   # VecNN
CUDA_VISIBLE_DEVICES=0 python -B scripts/evaluate_valthreshold.py

train_original.py and train_vecnn_steps.py continue an interrupted run with --resume. The test step chooses the threshold on all validation rows before it scores the test rows. Results: runs/test_evaluation_valthreshold_v1/, with the threshold in threshold.json and the metrics in test/metrics/v1/.

CORAL

DNABERT-2 and ESM-2 150M encoders fine-tuned with LoRA (rank 8) and joined by cross-attention, trained with the masked-language-model and classification losses of the paper (AdamW, learning rate 1e-6, batch 8, linear schedule with 5% warm-up over 10 epochs). Early stopping is checked every 10,000 steps on a fixed validation sample, with patience 5. Proteins longer than 1,250 residues are left out of training; at test time every row is scored, with the protein cut to 1,250 tokens.

cd compared_methods/coral
git clone https://github.com/MarioCatalano99/Coral upstream/Coral && git -C upstream/Coral checkout 9f8fc4f
python -B scripts/setup_model_assets.py           # downloads DNABERT-2 and ESM-2 150M
python -B scripts/build_stage1_inputs.py --workers 16
CUDA_VISIBLE_DEVICES=0 torchrun --standalone --nproc_per_node=1 scripts/train_coral.py
CUDA_VISIBLE_DEVICES=0 python -B scripts/evaluate_test.py preflight
CUDA_VISIBLE_DEVICES=0 python -B scripts/evaluate_test.py score --rank 0 --world-size 1
python -B scripts/evaluate_test.py merge
python -B scripts/compute_test_metrics.py --version v2

Running the training command again resumes it. Metrics: runs/stage1_full_v1/test/metrics/v2/overall.csv, population all_rows.

ZHMolTopoRPI

PSRT topological features of the RNA reduced by IncrementalPCA to 3,240 dimensions, frozen ESM-2 3B protein embeddings, and the CL-GADTN network trained with focal and supervised contrastive losses, with the published NPInter2 hyperparameters (configs/stage1_npinter2_v1.json). The epoch with the highest mean validation MCC is kept. launch_pipeline.sh runs feature extraction, the ESM-2 3B download and embedding, the preprocessing fit and the training as one detached process; it uses the interpreter in $PYTHON (default python).

cd compared_methods/zhmoltoporpi
git clone https://github.com/Zhaolab-GitHub/ZHMolTopoRPI upstream && git -C upstream checkout b37c300
python -B scripts/audit_stage1.py      # writes data/rna_sequence_index.parquet
bash scripts/launch_pipeline.sh        # status: bash scripts/check_run.sh, stop: bash scripts/stop_run.sh

# Test, after check_run.sh reports COMPLETED
python -B scripts/pretest_audit.py
python -B scripts/validation_inference.py
python -B scripts/select_thresholds.py
python -B scripts/build_rows.py --splits test_unseen_rna test_unseen_protein test_unseen_pair \
    --out data/rows_test
python -B scripts/extract_psrt.py --out cache/psrt_test --split-mask 224
python -B scripts/extract_esm2_eval.py
python -B scripts/test_inference.py
python -B scripts/evaluate_test.py --validation-only
python -B scripts/evaluate_test.py

Metrics: runs/stage1_npinter2_v1/test_evaluation/metrics/test/, decision rule paper_validation_mcc_threshold.

Tests

python -m unittest discover -s tests

The tests run on CPU and need no data.

Citation

RPI-Zero: Zero-shot RNA-Protein Interaction Prediction.

About

RPI-Zero: Zero-shot RNA-Protein Interaction Prediction

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages