Skip to content

Commit

Permalink
Update notebooks with the upcoming changes in v0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gtca committed Jul 3, 2024
1 parent cdbba38 commit eb8dd9d
Show file tree
Hide file tree
Showing 4 changed files with 261 additions and 106 deletions.
34 changes: 16 additions & 18 deletions docs/source/notebooks/annotations_management.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@
{
"data": {
"text/html": [
"<pre>MuData object with n_obs × n_vars = 60 × 100\n",
"<pre>MuData object with n_obs × n_vars = 60 × 100 (shared var) \n",
" 3 modalities\n",
" mod1:\t10 x 100\n",
" obs:\t&#x27;dataset&#x27;\n",
Expand All @@ -2069,7 +2069,7 @@
" obs:\t&#x27;dataset&#x27;, &#x27;species&#x27;, &#x27;reference&#x27;</pre>"
],
"text/plain": [
"MuData object with n_obs × n_vars = 60 × 100\n",
"MuData object with n_obs × n_vars = 60 × 100 (shared var) \n",
" 3 modalities\n",
" mod1:\t10 x 100\n",
" obs:\t'dataset'\n",
Expand Down Expand Up @@ -2211,7 +2211,7 @@
{
"data": {
"text/html": [
"<pre>MuData object with n_obs × n_vars = 10 × 100\n",
"<pre>MuData object with n_obs × n_vars = 10 × 100 (shared obs and var) \n",
" 2 modalities\n",
" raw:\t10 x 100\n",
" obs:\t&#x27;status&#x27;\n",
Expand All @@ -2220,7 +2220,7 @@
" var:\t&#x27;filtered&#x27;</pre>"
],
"text/plain": [
"MuData object with n_obs × n_vars = 10 × 100\n",
"MuData object with n_obs × n_vars = 10 × 100 (shared obs and var) \n",
" 2 modalities\n",
" raw:\t10 x 100\n",
" obs:\t'status'\n",
Expand Down Expand Up @@ -2337,10 +2337,10 @@
{
"data": {
"text/html": [
"<pre>MuData object with n_obs × n_vars = 10 × 300\n",
"<pre>MuData object with n_obs × n_vars = 10 × 300 (shared obs and var) \n",
" obs:\t&#x27;dataset&#x27;\n",
" 2 modalities\n",
" mod1:\tMuData object with n_obs × n_vars = 10 × 300\n",
" mod1:\tMuData object with n_obs × n_vars = 10 × 100 (shared obs and var) \n",
" 2 modalities\n",
" raw:\t10 x 100\n",
" obs:\t&#x27;status&#x27;\n",
Expand All @@ -2350,10 +2350,10 @@
" mod2:\t10 x 200</pre>"
],
"text/plain": [
"MuData object with n_obs × n_vars = 10 × 300\n",
"MuData object with n_obs × n_vars = 10 × 300 (shared obs and var) \n",
" obs:\t'dataset'\n",
" 2 modalities\n",
" mod1:\tMuData object with n_obs × n_vars = 10 × 300\n",
" mod1:\tMuData object with n_obs × n_vars = 10 × 100 (shared obs and var) \n",
" 2 modalities\n",
" raw:\t10 x 100\n",
" obs:\t'status'\n",
Expand Down Expand Up @@ -2383,13 +2383,11 @@
"name": "stdout",
"output_type": "stream",
"text": [
"{'mod1': MuData object with n_obs × n_vars = 10 × 100\n",
" 2 modalities\n",
" raw:\t10 x 100\n",
" obs:\t'status'\n",
" qced:\t8 x 50\n",
" obs:\t'status', 'filtered'\n",
" var:\t'filtered', 'mod2': AnnData object with n_obs × n_vars = 10 × 200}\n"
"MuData\n",
"├─ mod1 MuData [shared obs and var] (10 × 100)\n",
"│ ├─ raw AnnData (10 x 100)\n",
"│ └─ qced AnnData (8 x 50)\n",
"└─ mod2 AnnData (10 x 200)\n"
]
}
],
Expand Down Expand Up @@ -2514,9 +2512,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "ad0.9 (issue126)",
"display_name": "Python 3.12 (main)",
"language": "python",
"name": "issue126"
"name": "main"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -2528,7 +2526,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.0"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
16 changes: 8 additions & 8 deletions docs/source/notebooks/axes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"metadata": {},
"outputs": [],
"source": [
"! pip install mudata"
"%pip install mudata"
]
},
{
Expand Down Expand Up @@ -127,7 +127,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/mudata/_core/mudata.py:445: UserWarning: Cannot join columns with the same name because var_names are intersecting.\n",
"/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/mudata/src/mudata/_core/mudata.py:869: UserWarning: Cannot join columns with the same name because var_names are intersecting.\n",
" warnings.warn(\n"
]
},
Expand Down Expand Up @@ -314,13 +314,13 @@
{
"data": {
"text/html": [
"<pre>MuData object with n_obs × n_vars = 600 × 1000\n",
"<pre>MuData object with n_obs × n_vars = 600 × 1000 (shared var) \n",
" 2 modalities\n",
" dat1:\t100 x 1000\n",
" dat2:\t500 x 1000</pre>"
],
"text/plain": [
"MuData object with n_obs × n_vars = 600 × 1000\n",
"MuData object with n_obs × n_vars = 600 × 1000 (shared var) \n",
" 2 modalities\n",
" dat1:\t100 x 1000\n",
" dat2:\t500 x 1000"
Expand Down Expand Up @@ -441,13 +441,13 @@
{
"data": {
"text/html": [
"<pre>MuData object with n_obs × n_vars = 100 × 900\n",
"<pre>MuData object with n_obs × n_vars = 100 × 900 (shared obs and var) \n",
" 2 modalities\n",
" raw:\t100 x 900\n",
" preproc:\t100 x 300</pre>"
],
"text/plain": [
"MuData object with n_obs × n_vars = 100 × 900\n",
"MuData object with n_obs × n_vars = 100 × 900 (shared obs and var) \n",
" 2 modalities\n",
" raw:\t100 x 900\n",
" preproc:\t100 x 300"
Expand All @@ -466,7 +466,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -480,7 +480,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.12.3"
},
"toc": {
"base_numbering": 1,
Expand Down
Loading

0 comments on commit eb8dd9d

Please sign in to comment.