Skip to content

Commit 7145092

Browse files
committed
Fix error in pull command
1 parent c5a782a commit 7145092

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Markdowns/12_Gene_set_testing.Solutions.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ shrink.d11 <- readRDS("RObjects/Shrunk_Results.d11.rds")
3838
logFC <- shrink.d11 %>%
3939
drop_na(FDR, Entrez) %>%
4040
filter(FDR < 0.01) %>%
41-
pull(Entrez, logFC)
41+
pull(logFC, Entrez)
4242
4343
pathview(gene.data = logFC,
4444
pathway.id = "mmu04659",

Markdowns/12_Gene_set_testing.Solutions.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,14 @@ <h2>Exercise 1 - pathview</h2>
201201
<pre class="r"><code>logFC &lt;- shrink.d11 %&gt;%
202202
drop_na(FDR, Entrez) %&gt;%
203203
filter(FDR &lt; 0.01) %&gt;%
204-
pull(Entrez, logFC)
204+
pull(logFC, Entrez)
205205

206206
pathview(gene.data = logFC,
207207
pathway.id = &quot;mmu04659&quot;,
208208
species = &quot;mmu&quot;,
209209
limit = list(gene=5, cpd=1))</code></pre>
210-
<pre><code>## Warning: None of the genes or compounds mapped to the pathway!
211-
## Argument gene.idtype or cpd.idtype may be wrong.</code></pre>
210+
<pre><code>## Info: Downloading xml files for mmu04659, 1/1 pathways..</code></pre>
211+
<pre><code>## Info: Downloading png files for mmu04659, 1/1 pathways..</code></pre>
212212
<pre><code>## &#39;select()&#39; returned 1:1 mapping between keys and columns</code></pre>
213213
<pre><code>## Info: Working in directory /Users/sawle01/Documents/training/Bulk_RNAseq_Course_Base/Markdowns</code></pre>
214214
<pre><code>## Info: Writing image file mmu04659.pathview.png</code></pre>
@@ -310,8 +310,8 @@ <h2>Exercise 3 - GSEA</h2>
310310
select(-core_enrichment) %&gt;%
311311
mutate(across(c(&quot;enrichmentScore&quot;, &quot;NES&quot;), round, digits=3)) %&gt;%
312312
mutate(across(c(&quot;pvalue&quot;, &quot;p.adjust&quot;, &quot;qvalues&quot;), scales::scientific))</code></pre>
313-
<div id="htmlwidget-ac8d9395d3c490a61a62" style="width:100%;height:auto;" class="datatables html-widget"></div>
314-
<script type="application/json" data-for="htmlwidget-ac8d9395d3c490a61a62">{"x":{"filter":"none","vertical":false,"data":[["1","2","3","4","5","6","7","8","9","10"],["HALLMARK_INTERFERON_GAMMA_RESPONSE","HALLMARK_INTERFERON_ALPHA_RESPONSE","HALLMARK_ALLOGRAFT_REJECTION","HALLMARK_OXIDATIVE_PHOSPHORYLATION","HALLMARK_IL6_JAK_STAT3_SIGNALING","HALLMARK_INFLAMMATORY_RESPONSE","HALLMARK_COMPLEMENT","HALLMARK_TNFA_SIGNALING_VIA_NFKB","HALLMARK_APOPTOSIS","HALLMARK_IL2_STAT5_SIGNALING"],["Genes up-regulated in response to IFNG [GeneID=3458].","Genes up-regulated in response to alpha interferon proteins.","Genes up-regulated during transplant rejection.","Genes encoding proteins involved in oxidative phosphorylation.","Genes up-regulated by IL6 [GeneID=3569] via STAT3 [GeneID=6774], e.g., during acute phase response.","Genes defining inflammatory response.","Genes encoding components of the complement system, which is part of the innate immune system.","Genes regulated by NF-kB in response to TNF [GeneID=7124].","Genes mediating programmed cell death (apoptosis) by activation of caspases.","Genes up-regulated by STAT5 in response to IL2 stimulation."],[206,101,199,198,83,195,190,195,158,196],[0.944,0.951,0.904,-0.488,0.876,0.826,0.814,0.8,0.803,0.773],[1.956,1.946,1.877,-1.865,1.769,1.714,1.687,1.66,1.658,1.604],["1.00e-10","1.00e-10","1.00e-10","4.65e-08","1.64e-05","2.63e-07","2.14e-06","8.22e-06","4.92e-05","3.06e-04"],["1.67e-09","1.67e-09","1.67e-09","5.82e-07","1.02e-04","2.63e-06","1.78e-05","5.87e-05","2.73e-04","1.53e-03"],["1.19e-09","1.19e-09","1.19e-09","4.16e-07","7.34e-05","1.89e-06","1.27e-05","4.20e-05","1.96e-04","1.10e-03"],[824,619,874,4323,1422,1146,1294,1621,1545,1106],["tags=71%, list=5%, signal=68%","tags=76%, list=4%, signal=74%","tags=46%, list=5%, signal=44%","tags=55%, list=25%, signal=42%","tags=55%, list=8%, signal=51%","tags=39%, list=7%, signal=37%","tags=32%, list=8%, signal=30%","tags=43%, list=9%, signal=39%","tags=32%, list=9%, signal=29%","tags=25%, list=6%, signal=24%"]],"container":"<table class=\"display\">\n <thead>\n <tr>\n <th> <\/th>\n <th>ID<\/th>\n <th>Description<\/th>\n <th>setSize<\/th>\n <th>enrichmentScore<\/th>\n <th>NES<\/th>\n <th>pvalue<\/th>\n <th>p.adjust<\/th>\n <th>qvalues<\/th>\n <th>rank<\/th>\n <th>leading_edge<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"dom":"t","columnDefs":[{"className":"dt-right","targets":[3,4,5,9]},{"orderable":false,"targets":0}],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script>
313+
<div id="htmlwidget-4c24fb05ed6a63951d08" style="width:100%;height:auto;" class="datatables html-widget"></div>
314+
<script type="application/json" data-for="htmlwidget-4c24fb05ed6a63951d08">{"x":{"filter":"none","vertical":false,"data":[["1","2","3","4","5","6","7","8","9","10"],["HALLMARK_INTERFERON_GAMMA_RESPONSE","HALLMARK_INTERFERON_ALPHA_RESPONSE","HALLMARK_ALLOGRAFT_REJECTION","HALLMARK_OXIDATIVE_PHOSPHORYLATION","HALLMARK_IL6_JAK_STAT3_SIGNALING","HALLMARK_INFLAMMATORY_RESPONSE","HALLMARK_COMPLEMENT","HALLMARK_TNFA_SIGNALING_VIA_NFKB","HALLMARK_APOPTOSIS","HALLMARK_IL2_STAT5_SIGNALING"],["Genes up-regulated in response to IFNG [GeneID=3458].","Genes up-regulated in response to alpha interferon proteins.","Genes up-regulated during transplant rejection.","Genes encoding proteins involved in oxidative phosphorylation.","Genes up-regulated by IL6 [GeneID=3569] via STAT3 [GeneID=6774], e.g., during acute phase response.","Genes defining inflammatory response.","Genes encoding components of the complement system, which is part of the innate immune system.","Genes regulated by NF-kB in response to TNF [GeneID=7124].","Genes mediating programmed cell death (apoptosis) by activation of caspases.","Genes up-regulated by STAT5 in response to IL2 stimulation."],[206,101,199,198,83,195,190,195,158,196],[0.944,0.951,0.904,-0.488,0.876,0.826,0.814,0.8,0.803,0.773],[1.949,1.928,1.862,-1.853,1.765,1.699,1.672,1.646,1.645,1.592],["1.00e-10","1.00e-10","1.00e-10","2.19e-08","2.10e-05","5.06e-07","2.82e-06","1.35e-05","1.03e-04","1.94e-04"],["1.67e-09","1.67e-09","1.67e-09","2.74e-07","1.31e-04","5.06e-06","2.35e-05","9.62e-05","5.71e-04","9.72e-04"],["1.19e-09","1.19e-09","1.19e-09","1.96e-07","9.38e-05","3.62e-06","1.68e-05","6.89e-05","4.08e-04","6.95e-04"],[824,619,874,4323,1422,1146,1294,1621,1545,1106],["tags=71%, list=5%, signal=68%","tags=76%, list=4%, signal=74%","tags=46%, list=5%, signal=44%","tags=55%, list=25%, signal=42%","tags=55%, list=8%, signal=51%","tags=39%, list=7%, signal=37%","tags=32%, list=8%, signal=30%","tags=43%, list=9%, signal=39%","tags=32%, list=9%, signal=29%","tags=25%, list=6%, signal=24%"]],"container":"<table class=\"display\">\n <thead>\n <tr>\n <th> <\/th>\n <th>ID<\/th>\n <th>Description<\/th>\n <th>setSize<\/th>\n <th>enrichmentScore<\/th>\n <th>NES<\/th>\n <th>pvalue<\/th>\n <th>p.adjust<\/th>\n <th>qvalues<\/th>\n <th>rank<\/th>\n <th>leading_edge<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"dom":"t","columnDefs":[{"className":"dt-right","targets":[3,4,5,9]},{"orderable":false,"targets":0}],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script>
315315
<blockquote>
316316
<ol start="3" style="list-style-type: decimal">
317317
<li>Conduct the same analysis for the day 33 Infected vs Uninfected contrast.</li>
@@ -336,7 +336,7 @@ <h2>Exercise 3 - GSEA</h2>
336336
maxGSSize = 500)</code></pre>
337337
<pre><code>## preparing geneSet collections...</code></pre>
338338
<pre><code>## GSEA analysis...</code></pre>
339-
<pre><code>## Warning in fgseaMultilevel(...): There were 4 pathways for which P-values were
339+
<pre><code>## Warning in fgseaMultilevel(...): There were 2 pathways for which P-values were
340340
## not calculated properly due to unbalanced (positive and negative) gene-level
341341
## statistic values. For such pathways pval, padj, NES, log2err are set to NA. You
342342
## can try to increase the value of the argument nPermSimple (for example set it
@@ -352,8 +352,8 @@ <h2>Exercise 3 - GSEA</h2>
352352
select(-core_enrichment) %&gt;%
353353
mutate(across(c(&quot;enrichmentScore&quot;, &quot;NES&quot;), round, digits=3)) %&gt;%
354354
mutate(across(c(&quot;pvalue&quot;, &quot;p.adjust&quot;, &quot;qvalues&quot;), scales::scientific))</code></pre>
355-
<div id="htmlwidget-be07ff9c5a31df69bc15" style="width:100%;height:auto;" class="datatables html-widget"></div>
356-
<script type="application/json" data-for="htmlwidget-be07ff9c5a31df69bc15">{"x":{"filter":"none","vertical":false,"data":[["1","2","3","4","5","6","7","8","9","10"],["HALLMARK_INTERFERON_ALPHA_RESPONSE","HALLMARK_INTERFERON_GAMMA_RESPONSE","HALLMARK_ALLOGRAFT_REJECTION","HALLMARK_IL6_JAK_STAT3_SIGNALING","HALLMARK_INFLAMMATORY_RESPONSE","HALLMARK_COMPLEMENT","HALLMARK_IL2_STAT5_SIGNALING","HALLMARK_KRAS_SIGNALING_UP","HALLMARK_TNFA_SIGNALING_VIA_NFKB","HALLMARK_APOPTOSIS"],["Genes up-regulated in response to alpha interferon proteins.","Genes up-regulated in response to IFNG [GeneID=3458].","Genes up-regulated during transplant rejection.","Genes up-regulated by IL6 [GeneID=3569] via STAT3 [GeneID=6774], e.g., during acute phase response.","Genes defining inflammatory response.","Genes encoding components of the complement system, which is part of the innate immune system.","Genes up-regulated by STAT5 in response to IL2 stimulation.","Genes up-regulated by KRAS activation.","Genes regulated by NF-kB in response to TNF [GeneID=7124].","Genes mediating programmed cell death (apoptosis) by activation of caspases."],[101,206,199,83,195,190,196,195,195,158],[0.937,0.928,0.914,0.872,0.864,0.819,0.778,0.764,0.75,0.748],[1.785,1.774,1.751,1.663,1.656,1.57,1.491,1.464,1.438,1.437],["1.00e-10","1.00e-10","1.00e-10","7.25e-06","1.00e-10","6.62e-07","8.09e-05","1.97e-04","6.02e-04","3.14e-03"],["1.15e-09","1.15e-09","1.15e-09","5.56e-05","1.15e-09","6.09e-06","5.32e-04","1.13e-03","3.08e-03","1.44e-02"],["8.68e-10","8.68e-10","8.68e-10","4.20e-05","8.68e-10","4.60e-06","4.01e-04","8.54e-04","2.32e-03","1.09e-02"],[899,899,976,1149,1322,1143,1577,1515,1390,1618],["tags=78%, list=5%, signal=75%","tags=67%, list=5%, signal=65%","tags=56%, list=6%, signal=53%","tags=58%, list=7%, signal=54%","tags=47%, list=8%, signal=44%","tags=29%, list=7%, signal=27%","tags=34%, list=9%, signal=31%","tags=27%, list=9%, signal=25%","tags=35%, list=8%, signal=33%","tags=31%, list=9%, signal=28%"]],"container":"<table class=\"display\">\n <thead>\n <tr>\n <th> <\/th>\n <th>ID<\/th>\n <th>Description<\/th>\n <th>setSize<\/th>\n <th>enrichmentScore<\/th>\n <th>NES<\/th>\n <th>pvalue<\/th>\n <th>p.adjust<\/th>\n <th>qvalues<\/th>\n <th>rank<\/th>\n <th>leading_edge<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"dom":"t","columnDefs":[{"className":"dt-right","targets":[3,4,5,9]},{"orderable":false,"targets":0}],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script>
355+
<div id="htmlwidget-3366c8e3c7d14b4fd5fe" style="width:100%;height:auto;" class="datatables html-widget"></div>
356+
<script type="application/json" data-for="htmlwidget-3366c8e3c7d14b4fd5fe">{"x":{"filter":"none","vertical":false,"data":[["1","2","3","4","5","6","7","8","9","10"],["HALLMARK_INTERFERON_ALPHA_RESPONSE","HALLMARK_INTERFERON_GAMMA_RESPONSE","HALLMARK_ALLOGRAFT_REJECTION","HALLMARK_IL6_JAK_STAT3_SIGNALING","HALLMARK_INFLAMMATORY_RESPONSE","HALLMARK_COMPLEMENT","HALLMARK_IL2_STAT5_SIGNALING","HALLMARK_KRAS_SIGNALING_UP","HALLMARK_APOPTOSIS","HALLMARK_TNFA_SIGNALING_VIA_NFKB"],["Genes up-regulated in response to alpha interferon proteins.","Genes up-regulated in response to IFNG [GeneID=3458].","Genes up-regulated during transplant rejection.","Genes up-regulated by IL6 [GeneID=3569] via STAT3 [GeneID=6774], e.g., during acute phase response.","Genes defining inflammatory response.","Genes encoding components of the complement system, which is part of the innate immune system.","Genes up-regulated by STAT5 in response to IL2 stimulation.","Genes up-regulated by KRAS activation.","Genes mediating programmed cell death (apoptosis) by activation of caspases.","Genes regulated by NF-kB in response to TNF [GeneID=7124]."],[101,206,199,83,195,190,196,195,158,195],[0.937,0.928,0.914,0.872,0.864,0.819,0.778,0.764,0.748,0.75],[1.796,1.768,1.746,1.674,1.65,1.564,1.486,1.459,1.436,1.432],["1.00e-10","1.00e-10","1.00e-10","1.42e-05","1.00e-10","6.63e-07","2.04e-04","4.74e-04","4.37e-03","1.21e-03"],["1.20e-09","1.20e-09","1.20e-09","1.14e-04","1.20e-09","6.36e-06","1.40e-03","2.84e-03","2.10e-02","6.46e-03"],["9.21e-10","9.21e-10","9.21e-10","8.72e-05","9.21e-10","4.88e-06","1.07e-03","2.18e-03","1.61e-02","4.96e-03"],[899,899,976,1149,1322,1143,1577,1515,1618,1390],["tags=78%, list=5%, signal=75%","tags=67%, list=5%, signal=65%","tags=56%, list=6%, signal=53%","tags=58%, list=7%, signal=54%","tags=47%, list=8%, signal=44%","tags=29%, list=7%, signal=27%","tags=34%, list=9%, signal=31%","tags=27%, list=9%, signal=25%","tags=31%, list=9%, signal=28%","tags=35%, list=8%, signal=33%"]],"container":"<table class=\"display\">\n <thead>\n <tr>\n <th> <\/th>\n <th>ID<\/th>\n <th>Description<\/th>\n <th>setSize<\/th>\n <th>enrichmentScore<\/th>\n <th>NES<\/th>\n <th>pvalue<\/th>\n <th>p.adjust<\/th>\n <th>qvalues<\/th>\n <th>rank<\/th>\n <th>leading_edge<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"dom":"t","columnDefs":[{"className":"dt-right","targets":[3,4,5,9]},{"orderable":false,"targets":0}],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script>
357357
</div>
358358

359359

-389 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)