File size: 1,879 Bytes
f7e1f72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
02a6e4b
f7e1f72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
tags:
  - spatial-transcriptomics
  - graph-transformer
  - gene-expression
  - finetuned
  - mouse-stroke
  - pytorch
language:
  - en
library_name: transformers
pipeline_tag: feature-extraction
---

# SpatialGT Finetuned Model - Mouse Stroke (PT)

## Model Description

This is the **finetuned checkpoint** of SpatialGT on mouse stroke PT (photothrombotic stroke) spatial transcriptomics data.

This model is specifically finetuned for the mouse stroke perturbation simulation case study, trained on the PT1-1 slice.

## Model Details

- **Base Model**: SpatialGT Pretrained
- **Finetuning Data**: Mouse stroke PT 4 slices (Visium)
- **Finetuning Strategy**: Full finetuning (8 transformer layers unfrozen)
- **Epochs**: 100
- **Learning Rate**: 1e-4

## Usage

```python
import torch
from pretrain.model_spatialpt import SpatialNeighborTransformer
from pretrain.Config import Config

# Load configuration
config = Config()

# Initialize model
model = SpatialNeighborTransformer(config)

# Load finetuned weights
from safetensors.torch import load_file
state_dict = load_file("model.safetensors")
model.load_state_dict(state_dict)

model.eval()
```

## Intended Use

This model is intended for:
- Reconstructing gene expression in stroke-affected mouse brain tissue
- Simulating perturbation effects in ischemic regions (ICA, PIA)
- Comparative analysis with Sham (control) model

## Files

- `model.safetensors`: Model weights in safetensors format
- `training_args.bin`: Training arguments

## Related Models

- [SpatialGT-Pretrained](https://huggingface.co/Bgoood/SpatialGT-Pretrained): Base pretrained model
- [SpatialGT-MouseStroke-Sham](https://huggingface.co/Bgoood/SpatialGT-MouseStroke-Sham): Finetuned on Sham (control) slice

## Citation

If you use this model, please cite our paper (details to be added upon publication).

## License

MIT License