Skip to content

Commit

Permalink
doc up
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitjohnson committed Jun 5, 2022
1 parent 681ef46 commit 70a8255
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scimap/preprocessing/_rescale.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ def rescale (adata, gate=None, log=True,
Example:
```python
# create a df with manual gates
manual_gate = pd.DataFrame({'marker': ['CD3D', 'KI67'], 'gate': [7, 8]})
adata = sm.pp.rescale (adata, gate=manual_gate, failed_markers=['CD20', 'CD21'])
# create a df with manual gates
manual_gate = pd.DataFrame({'marker': ['CD3D', 'KI67'], 'gate': [7, 8]})
adata = sm.pp.rescale (adata, gate=manual_gate, failed_markers={'all':['CD20', 'CD21']})
# you could also import the gates as a pandas dataframe without index
manual_gate = pd.read_csv('manual_gates.csv')
adata = sm.pp.rescale (adata, gate=manual_gate, failed_markers=['CD20', 'CD21'])
# you could also import the gates as a pandas dataframe without index
manual_gate = pd.read_csv('manual_gates.csv')
adata = sm.pp.rescale (adata, gate=manual_gate, failed_markers={'all':['CD20', 'CD21']})
# The function can also be run without providing manual gates. This will trigger the GMM mode
adata = sm.pp.rescale (adata, gate=None, failed_markers=['CD20', 'CD21'])
# The function can also be run without providing manual gates. This will trigger the GMM mode
adata = sm.pp.rescale (adata, gate=None, failed_markers={'all':['CD20', 'CD21']})
```
Expand Down

0 comments on commit 70a8255

Please sign in to comment.