|
39 | 39 | "project = ocx.Projects.get(\"d53ad03b010542e3\") # get DIABIMMUNE project by ID\n",
|
40 | 40 | "samples = ocx.Samples.where(project=project.id, public=True, limit=50)\n",
|
41 | 41 | "\n",
|
42 |
| - "# filter warning because timestamp shows up in diff-pdf\n", |
43 |
| - "with warnings.catch_warnings():\n", |
44 |
| - " warnings.filterwarnings(\"ignore\", message=\".*SampleCollection contains multiple.*\")\n", |
45 |
| - " md_table = samples.metadata[[\n", |
46 |
| - " \"gender\",\n", |
47 |
| - " \"host_age\",\n", |
48 |
| - " \"geo_loc_name\",\n", |
49 |
| - " \"totalige\",\n", |
50 |
| - " \"eggs\",\n", |
51 |
| - " \"vegetables\",\n", |
52 |
| - " \"milk\",\n", |
53 |
| - " \"wheat\",\n", |
54 |
| - " \"rice\",\n", |
55 |
| - " ]]\n", |
| 42 | + "md_table = samples.metadata[[\n", |
| 43 | + " \"gender\",\n", |
| 44 | + " \"host_age\",\n", |
| 45 | + " \"geo_loc_name\",\n", |
| 46 | + " \"totalige\",\n", |
| 47 | + " \"eggs\",\n", |
| 48 | + " \"vegetables\",\n", |
| 49 | + " \"milk\",\n", |
| 50 | + " \"wheat\",\n", |
| 51 | + " \"rice\",\n", |
| 52 | + "]]\n", |
56 | 53 | " \n",
|
57 | 54 | "display(md_table)"
|
58 | 55 | ]
|
|
72 | 69 | "metadata": {},
|
73 | 70 | "outputs": [],
|
74 | 71 | "source": [
|
75 |
| - "observed_taxa = samples.plot_metadata(vaxis=\"observed_taxa\", haxis=\"geo_loc_name\", return_chart=True)\n", |
76 |
| - "simpson = samples.plot_metadata(vaxis=\"simpson\", haxis=\"geo_loc_name\", return_chart=True)\n", |
77 |
| - "shannon = samples.plot_metadata(vaxis=\"shannon\", haxis=\"geo_loc_name\", return_chart=True)\n", |
| 72 | + "# filter warning because timestamp shows up in diff-pdf\n", |
| 73 | + "with warnings.catch_warnings():\n", |
| 74 | + " warnings.filterwarnings(\"ignore\", message=\".*SampleCollection contains multiple.*\")\n", |
| 75 | + " \n", |
| 76 | + " observed_taxa = samples.plot_metadata(vaxis=\"observed_taxa\", haxis=\"geo_loc_name\", return_chart=True)\n", |
| 77 | + " simpson = samples.plot_metadata(vaxis=\"simpson\", haxis=\"geo_loc_name\", return_chart=True)\n", |
| 78 | + " shannon = samples.plot_metadata(vaxis=\"shannon\", haxis=\"geo_loc_name\", return_chart=True)\n", |
78 | 79 | "\n",
|
79 | 80 | "observed_taxa | simpson | shannon"
|
80 | 81 | ]
|
|
259 | 260 | "name": "python",
|
260 | 261 | "nbconvert_exporter": "python",
|
261 | 262 | "pygments_lexer": "ipython3",
|
262 |
| - "version": "3.11.3" |
| 263 | + "version": "3.11.4" |
263 | 264 | },
|
264 | 265 | "onecodex_notebook": true
|
265 | 266 | },
|
|
0 commit comments