Skip to content

Commit

Permalink
Added pixel_ind in adata.uns['reads']
Browse files Browse the repository at this point in the history
  • Loading branch information
axanderssonuu committed Jan 25, 2024
1 parent 4587687 commit 33f81ce
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 176 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ You can install Points2Regions using the following command:
pip install git+https://github.com/wahlby-lab/Points2Regions
```



## Usage

```python
Expand All @@ -34,10 +36,10 @@ p2r.fit(num_clusters=15)
cluster_per_marker = p2r.predict(output='marker')

# Get a label mask
label_mask, _ = p2r.predict(output='pixel')
label_mask, tform = p2r.predict(output='pixel')

# Get connected components
_, _, connected_components, num_components = p2r.predict(output='component')
connected_components, num_components, label_mask, tform = p2r.predict(output='connected')
```

## Example
Expand Down
56 changes: 31 additions & 25 deletions example.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 33f81ce

Please sign in to comment.