anasanchezf commited on
Commit
a604856
·
verified ·
1 Parent(s): 608a25d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -73
README.md CHANGED
@@ -14,81 +14,12 @@ tags:
14
  - computer-vision
15
  - plate-effects
16
  ---
17
- # Getting started
18
 
19
- # Environment setup
20
- Create a conda environment using the following command:
21
- ```
22
- conda env create -f environment.yml
23
- conda activate plt
24
- ```
25
- You might need to adjust the CUDA versions.
26
 
27
- # Evaluate your own images
28
 
29
- We have uploaded an example folder in Hugging Face to ease playing around with our models and as a reference for how to format the data. But if you have your own images that wou would like to test, you can also use them!
30
- You just need to have a folder with the TIFF files and a parquet index file.
31
 
32
- ```bash
33
- hf download anasanchezf/plate_effects example.tar.gz --type=dataset --local-dir="."
34
- tar -xzf example.tar.gz
35
 
36
- ```
37
-
38
-
39
- ```python
40
- import pandas as pd
41
- from sklearn.metrics import accuracy_score
42
- from sklearn.preprocessing import LabelEncoder
43
- from plt.model.pretrained import PreTrainedARMBN
44
-
45
- # COMPOUND ENCODING
46
- # 'JCP2022_012818': 0 TC-S-7004
47
- # 'JCP2022_025848': 1 dexamethasone
48
- # 'JCP2022_035095': 2 LY2109761
49
- # 'JCP2022_037716': 3 AMG900
50
- # 'JCP2022_046054': 4 FK-866
51
- # 'JCP2022_050797': 5 quinidine
52
- # 'JCP2022_064022': 6 NVS-PAK1-1
53
- # 'JCP2022_085227': 7 aloxistatin
54
-
55
-
56
- perturbed = pd.read_parquet("example/plate_index.pq")
57
- controls = pd.read_parquet("example/plate_index_controls.pq")
58
-
59
- perturbed_and_controls = pd.concat([perturbed, controls])
60
-
61
- model = PreTrainedCSARMBN()
62
-
63
- model.adapt(perturbed_and_controls)
64
- probs, uncertainty = model.predict(perturbed)
65
-
66
- label_encoder = LabelEncoder()
67
- labels = label_encoder.fit_transform(perturbed["Metadata_JCP2022"])
68
- accuracy_score(labels, probs.argmax(dim=1).cpu())
69
-
70
- ```
71
-
72
- # Train your own adaptable models
73
-
74
- ## Download the data
75
- ``` bash
76
- preprocess/images/01-download_indices.sh
77
- preprocess/images/02-download_metadata.sh
78
- python preprocess/images/03-create_indices.py
79
- python preprocess/images/04-download_images_aws.py
80
- ```
81
-
82
- ## Run CS-ARM-BN
83
- ``` bash
84
- scripts/run_cs_arm_bn.sh
85
- ```
86
-
87
- ## Additional dependencies
88
- To use the Channel Agnostic Masked Autoencoder baseline you will have to export or install the package as follows.
89
-
90
- ``` bash
91
- git clone https://github.com/recursionpharma/maes_microscopy.git
92
- git clone https://huggingface.co/recursionpharma/OpenPhenom
93
- export PYTHONPATH="${PYTHONPATH}:${PWD}/maes_microscopy"
94
- ```
 
14
  - computer-vision
15
  - plate-effects
16
  ---
 
17
 
18
+ # Multi-Source Domain Adaptation for Bioimaging Data (MSCDA-BioIm)
 
 
 
 
 
 
19
 
20
+ **MSCDA-BioIm** is a biomedical microscopy benchmark for evaluating test-time and in-context domain adaptation under realistic batch effects. Built from the large-scale JUMP-CP dataset, it targets mechanism-of-action (MoA) classification using five-channel images of compounds associated with eight well-defined MoA classes. The dataset is organized by experimental batches and imaging sources, enabling controlled evaluation of generalization to unseen batches, cross-source transfer, small target context sizes, and label-shifted target batches.
21
 
22
+ A key feature of **MSCDA-BioIm** is the inclusion of negative control samples in every experimental batch. These unperturbed samples provide a stable reference for estimating batch-specific technical variation, making the dataset especially suitable for studying control-aware adaptation methods such as CS-ARM-BN.
 
23
 
24
+ For more information, please see our [paper](https://arxiv.org/abs/2508.06600) and [code](https://github.com/texttron/BrowseComp-Plus)
 
 
25