Skip to content

Commit d8e9b1e

Browse files
committed
second batch of revisions
1 parent 736a29f commit d8e9b1e

8 files changed

+1852
-463
lines changed

netbooks/Welcome_to_netBooks.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"source": [
1212
"<center><h1> Welcome to netBooks! </h1></center>\n",
1313
"<center><h3>netBooks is a cloud notebook server for the Network Zoo. </h3></center>\n",
14-
"<center><a href=\"https://github.com/netZoo/netbooks/releases/tag/1.7\">v 1.8</a> - last update: 12/20/2021</center>\n",
14+
"<center><a href=\"https://github.com/netZoo/netbooks/releases/tag/1.8.1\">v 1.8.1</a> - last update: 12/20/2021</center>\n",
1515
"\n",
1616
"### What is netZoo?\n",
1717
"The Network Zoo (netZoo, http://netzoo.github.io) is a community-driven catalog of gene regulatory network inference and analysis methods. The methods span gene regulatory network estimation and reconstruction, module identification, state transition inference, and mutation network completion. The package was deemed a 'zoo' because the methods were called after [animal names](https://netzoo.github.io/zooanimals/) such as [OTTER](https://netzoo.github.io/zooanimals/otter/) and [SAMBAR](https://netzoo.github.io/zooanimals/sambar/).\n",
@@ -80,7 +80,7 @@
8080
"\n",
8181
" - [Estimating state transition in yeast cell cycle using MONSTER](netZooR/MONSTER.ipynb)\n",
8282
" \n",
83-
" - [Processing TCGA gene expression data for network analysis](netZooR/gene_expression_for_coexpression_nets.ipynb)\n",
83+
" - [Processing GTEx and TCGA gene expression data for network analysis](netZooR/gene_expression_for_coexpression_nets.ipynb)\n",
8484
" \n",
8585
" - [Sex differences in lung adenocarcinoma](netZooR/sex_differences_LUAD.ipynb)\n",
8686
" \n",

netbooks/netZooPy/dragon_mirna.ipynb

Lines changed: 46 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,14 @@
232232
"metadata": {},
233233
"outputs": [],
234234
"source": [
235-
"mirna=pd.read_csv(ppath+'CCLE_miRNA_20181103.gct',sep='\\t',comment='#',skiprows=2,index_col=1)\n",
236-
"mirna"
235+
"mirna=pd.read_csv(ppath+'CCLE_miRNA_20181103.gct',sep='\\t',comment='#',skiprows=2,index_col=1)"
236+
]
237+
},
238+
{
239+
"cell_type": "markdown",
240+
"metadata": {},
241+
"source": [
242+
"Then remove unnecessary metdata columns"
237243
]
238244
},
239245
{
@@ -242,15 +248,14 @@
242248
"metadata": {},
243249
"outputs": [],
244250
"source": [
245-
"expression=pd.read_csv(ppath+'CCLE_expression.csv',index_col=0)\n",
246-
"expression"
251+
"mirna = mirna.iloc[:,1:]"
247252
]
248253
},
249254
{
250255
"cell_type": "markdown",
251256
"metadata": {},
252257
"source": [
253-
"Then remove unnecessary metdata columns"
258+
"Next convert cell names to depmap IDs "
254259
]
255260
},
256261
{
@@ -259,14 +264,15 @@
259264
"metadata": {},
260265
"outputs": [],
261266
"source": [
262-
"mirna = mirna.iloc[:,1:]"
267+
"mirna=convertToDepMap(mirna,cellNames)\n",
268+
"mirna"
263269
]
264270
},
265271
{
266272
"cell_type": "markdown",
267273
"metadata": {},
268274
"source": [
269-
"Next convert cell names to depmap IDs "
275+
"miRNA data has miRNA expression measurments across 952 cells for 734 miRNAs."
270276
]
271277
},
272278
{
@@ -275,14 +281,15 @@
275281
"metadata": {},
276282
"outputs": [],
277283
"source": [
278-
"mirna=convertToDepMap(mirna,cellNames)"
284+
"expression=pd.read_csv(ppath+'CCLE_expression.csv',index_col=0)\n",
285+
"expression"
279286
]
280287
},
281288
{
282289
"cell_type": "markdown",
283290
"metadata": {},
284291
"source": [
285-
"and finally align dataframes"
292+
"Gene expression data has measurments for 19177 genes for 1376 cells. Finally we align both miRNA and gene expression dataframes on their intersecting cells."
286293
]
287294
},
288295
{
@@ -291,14 +298,24 @@
291298
"metadata": {},
292299
"outputs": [],
293300
"source": [
294-
"expression,mirna=alignDF(expression,mirna,remove_std=1)"
301+
"expression,mirna=alignDF(expression,mirna,remove_std=1)\n",
302+
"expression"
295303
]
296304
},
297305
{
298306
"cell_type": "markdown",
299307
"metadata": {},
300308
"source": [
301-
"# 2. Scale miRNA and gene expression data"
309+
"We see that miRNA and mRNA expression is shared among 938 intersecting cells."
310+
]
311+
},
312+
{
313+
"cell_type": "markdown",
314+
"metadata": {},
315+
"source": [
316+
"# 2. Scale miRNA and gene expression data\n",
317+
"\n",
318+
"Before calling DRAGON on our 2 multi-omic layers (miRNA, mRNA), we need to scale the input data, which standardizes the expression for genes and miRNA across samples to be of mean 0 and variance 1."
302319
]
303320
},
304321
{
@@ -311,6 +328,13 @@
311328
"expressionMat= expression.values"
312329
]
313330
},
331+
{
332+
"cell_type": "markdown",
333+
"metadata": {},
334+
"source": [
335+
"The miRNA data is a miRNA by sample matrix, therefore, we transpose it."
336+
]
337+
},
314338
{
315339
"cell_type": "code",
316340
"execution_count": null,
@@ -325,7 +349,9 @@
325349
"cell_type": "markdown",
326350
"metadata": {},
327351
"source": [
328-
"# 3. Call Dragon"
352+
"# 3. Call Dragon\n",
353+
"\n",
354+
"Finally, we call DRAGON on the processed data to estimate the partial correlations. In this specific application, we will skip computing the p-values for associations."
329355
]
330356
},
331357
{
@@ -357,8 +383,14 @@
357383
"cell_type": "markdown",
358384
"metadata": {},
359385
"source": [
360-
"## References\n",
361-
"\n"
386+
"The final network links miRNAs to their potential target transcripts. Edge weights represent partial correlations constructed across 2 biological layers across 938 cells, correcting for all other variables in the system, which can be useful to infer direct associations and remove spurious correlations. In this network, positive edge weights indicate a positive association, negative edge weights indicate anegative association, and partial correlations of zero indicate independence between the variables. This network can be visualized in GRAND database: https://grand.networkmedicine.org/cell/mirna/."
387+
]
388+
},
389+
{
390+
"cell_type": "markdown",
391+
"metadata": {},
392+
"source": [
393+
"# References"
362394
]
363395
},
364396
{

0 commit comments

Comments
 (0)