You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What if you want to select your own gene of interest? One way is creating a new data frame where you have added a value in the `genelabels` column just for that one symbol.
309
+
What if you want to select your own gene of interest? One way is creating a new data frame where you have added a value in the `genelabels` column just for that one symbol. In this example, I am using a gene symbol called `HOX3A`.
- Assign value just to the one relevant empty `my_genelabel` slot! You can use a strategy like this in other data frames and with other genes - or whole custom lists of genes.
# Assign value just to that one empty genelabel slot! You can use a strategy like this in other data frames and with other genes - or whole custom lists of genes.
If we do this correctly, we should have a something like the following - depending on what you have saved as your `genelabels` variable and how big your plot window is:
> ### An R package for visualization of DGE results
386
-
>
387
-
> The Bioconductor package [`DEGreport`](https://bioconductor.org/packages/release/bioc/html/DEGreport.html) can use the DESeq2 results output to make the top20 genes and the volcano plots generated above by writing much fewer lines of code. The caveat of these functions is you lose the ability to customize plots as we have demonstrated above.
388
-
>
389
-
> If you are interested, the example code below shows how you can use DEGreport to create similar plots. **Note that this is example code, do not run.**
390
-
>
401
+
### An R package for visualization of DGE results
402
+
403
+
The Bioconductor package [`DEGreport`](https://bioconductor.org/packages/release/bioc/html/DEGreport.html) can use the DESeq2 results output to make the top20 genes and the volcano plots generated above by writing much fewer lines of code. The caveat of these functions is you lose the ability to customize plots as we have demonstrated above.
404
+
405
+
If you are interested, the example code below shows how you can use DEGreport to create similar plots. **Note that this is example code, do not run.**
406
+
391
407
> ```r
392
408
>## load degreport
393
409
> library(degreport)
@@ -403,6 +419,35 @@ Take the above steps (starting with finding the Ensembl Gene ID) for a gene symb
Today, wedidn't create any new data objects required for the next lesson. However, if you want to save the commands we used to generate the custom data frames for plotting, you can save relevant lines from below:
425
+
426
+
``` r
427
+
## Obtain logical vector where TRUE values denote padj values < 0.05 and fold change > 1.5 in either direction (meaning log2FC >= 0.58)
*This lesson has been developed by members of the teaching team at the [Harvard Chan Bioinformatics Core (HBC)](http://bioinformatics.sph.harvard.edu/). These are open access materials distributed under the terms of the [Creative Commons Attribution license](https://creativecommons.org/licenses/by/4.0/) (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.*
0 commit comments