Skip to content

Commit

Permalink
💄 Prettify scrna guide
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Aug 6, 2024
1 parent 2b57ed6 commit 030d4b9
Showing 1 changed file with 73 additions and 10 deletions.
83 changes: 73 additions & 10 deletions docs/scrna.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"curate = ln.Curate.from_anndata(\n",
Expand All @@ -136,7 +140,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"curate.add_new_from_var_index()"
Expand All @@ -145,7 +153,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"curate.validate()"
Expand All @@ -154,7 +166,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"curate.add_new_from(\"donor\")\n",
Expand All @@ -164,7 +180,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"curate.add_validated_from(\"all\")"
Expand All @@ -173,7 +193,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"curate.validate()"
Expand All @@ -199,15 +223,46 @@
"artifact = curate.save_artifact(description=\"Human immune cells from Conde22\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"It is annotated with rich metadata:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"artifact.describe()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"You can also see the types of the metadata:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"artifact.describe(print_types=True)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -254,7 +309,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"collection.describe()"
Expand All @@ -270,10 +329,14 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"hide-output"
]
},
"outputs": [],
"source": [
"collection.ordered_artifacts"
"collection.artifacts"
]
},
{
Expand Down

0 comments on commit 030d4b9

Please sign in to comment.