FrancescaDr commited on
Commit
ba9b519
·
verified ·
1 Parent(s): 86ab4de

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -26
README.md CHANGED
@@ -48,32 +48,6 @@ The following models are available from the InterScale Hugging Face repository.
48
 
49
  Here's a basic example: <!-- CONFIRM: function/argument names below follow scConcept's API as a template — adjust to InterScale's actual package interface. -->
50
 
51
- ```python
52
- from interscale import InterScale
53
- import scanpy as sc
54
- import squidpy as sq
55
-
56
- # Load your spatial transcriptomics data
57
- adata = sc.read_h5ad("your_data.h5ad")
58
-
59
- # Normalize and log-transform (InterScale performs best with max normalized values of 4)
60
- sc.pp.normalize_total(adata)
61
- sc.pp.log1p(adata)
62
-
63
- # Build the spatial neighborhood graph
64
- # Use a radius-based graph for image-based data (e.g. Xenium, MERFISH, IMC),
65
- # or a hexagonal grid-based graph for sequencing-based data (e.g. Visium)
66
- sq.gr.spatial_neighbors(adata, coord_type="generic", radius=<INSERT RADIUS>)
67
-
68
- # Initialize InterScale and load a pretrained model
69
- model = InterScale(cache_dir="./cache/")
70
- model.load_config_and_model(model_name="<INSERT MODEL NAME>")
71
-
72
- # Extract local and global embeddings
73
- result = model.extract_embeddings(adata=adata)
74
- adata.obsm["X_interscale_local"] = result["local_emb"]
75
- adata.obsm["X_interscale_global"] = result["global_emb"]
76
- ```
77
 
78
  ### Multi-scale downstream analysis
79
 
 
48
 
49
  Here's a basic example: <!-- CONFIRM: function/argument names below follow scConcept's API as a template — adjust to InterScale's actual package interface. -->
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
 
52
  ### Multi-scale downstream analysis
53