Skip to content

Commit

Permalink
added more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
felix0097 committed Mar 27, 2024
1 parent 28f2707 commit ea7bb73
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions notebooks-tutorials/model_inference.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
"id": "06af81a7",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
},
"tags": []
},
"outputs": [
Expand Down Expand Up @@ -380,9 +377,6 @@
"id": "929ae0c7",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
},
"tags": []
},
"outputs": [
Expand All @@ -404,7 +398,11 @@
"# subset gene space only to genes used by the model\n",
"adata = adata[:, adata.var.feature_name.isin(genes_from_model.feature_name).to_numpy()]\n",
"# pass the count matrix in csc_matrix to make column slicing efficient\n",
"x_streamlined = streamline_count_matrix(csc_matrix(adata.X), adata.var.feature_name, genes_from_model.feature_name)\n",
"x_streamlined = streamline_count_matrix(\n",
" csc_matrix(adata.X), \n",
" adata.var.feature_name, # change this if gene names are stored in different column\n",
" genes_from_model.feature_name\n",
")\n",
"x_streamlined.shape"
]
},
Expand Down Expand Up @@ -535,9 +533,6 @@
"id": "05b2ac0e",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
},
"tags": []
},
"outputs": [],
Expand Down

0 comments on commit ea7bb73

Please sign in to comment.