Skip to content

Commit 2cab8f1

Browse files
authored
Update README.md example
1 parent af260dc commit 2cab8f1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,15 @@ There are several alternative options to install `annsel`:
7979
```python
8080
import annsel as an
8181
82-
adata= an.datasets.leukemic_bone_marrow_dataset()
83-
84-
adata.an.filter(an.var_col(["feature_type"]).is_in(["protein_coding", "lncRNA"]), copy=True)
85-
82+
adata=an.datasets.leukemic_bone_marrow_dataset()
83+
84+
adata.an.filter(
85+
obs=(
86+
an.col(["Cell_label"]).is_in(["Classical Monocytes", "CD8+CD103+ tissue resident memory T cells"]),
87+
an.col(["sex"]) == "male",
88+
),
89+
var=an.col(["vst.mean"]) >= 3,
90+
)
8691
```
8792

8893
## Release notes

0 commit comments

Comments
 (0)