File size: 2,333 Bytes
fb7491b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
license: apache-2.0
task_categories:
- feature-extraction
- text-classification
tags:
- protein
- bioinformatics
- embeddings
- conformal-prediction
size_categories:
- 1M<n<10M
---

# Conformal Protein Retrieval - Data Files

This dataset contains the large data files required to run the [Conformal Protein Retrieval Gradio Space](https://huggingface.co/spaces/LoocasGoose/cpr).

## Contents

### 📊 Lookup Databases

**UniProt Database:**
- `data/lookup_embeddings.npy` - Pre-embedded UniProt protein sequences (Protein-Vec embeddings)
- `data/lookup_embeddings_meta_data.tsv` - Metadata for UniProt proteins (Entry, Pfam, Protein names)

**SCOPE Database:**
- `data/lookup/scope_lookup_embeddings.npy` - Pre-embedded SCOPE protein domain sequences
- `data/lookup/scope_lookup.fasta` - FASTA metadata for SCOPE proteins

### 🎯 Conformal Prediction Files

- `results/fdr_thresholds.csv` - Precomputed FDR (False Discovery Rate) thresholds
- `results/fnr_thresholds.csv` - Precomputed FNR (False Negative Rate) thresholds
- `results/calibration_probs.csv` - Calibration probabilities for Venn-Abers prediction

### 🧬 Protein-Vec Model

- `protein_vec_models/protein_vec.ckpt` - Main Protein-Vec model checkpoint
- `protein_vec_models/protein_vec_params.json` - Model configuration
- `protein_vec_models/*.py` - Model architecture code files

## Usage

These files are automatically loaded by the Gradio Space application. To use them locally:

```python
from huggingface_hub import hf_hub_download
import numpy as np

# Download a specific file
embedding_file = hf_hub_download(
    repo_id="LoocasGoose/cpr_data",
    filename="data/lookup_embeddings.npy",
    repo_type="dataset"
)

# Load the embeddings
embeddings = np.load(embedding_file)
```

## Citation

If you use these data files, please cite the original paper:

```bibtex
@article{boger2025functional,
  title={Functional protein mining with conformal guarantees},
  author={Boger, Ron S and Chithrananda, Seyone and Angelopoulos, Anastasios N and Yoon, Peter H and Jordan, Michael I and Doudna, Jennifer A},
  journal={Nature Communications},
  volume={16},
  number={1},
  pages={85},
  year={2025},
  publisher={Nature Publishing Group UK London}
}
```

## License

Apache 2.0

## Source

Original data from: [Zenodo](https://zenodo.org/records/14272215)