diff --git a/articles/HybridExpress.html b/articles/HybridExpress.html index 2f90a24..bc1b974 100644 --- a/articles/HybridExpress.html +++ b/articles/HybridExpress.html @@ -259,19 +259,19 @@
We will proceed our analyses with the midparent expression values
obtained from the mean of the counts, stored in the se
object.
Now, we will use get_deg_list()
to get differentially
expressed genes (DEGs) for each contrast while using spike-in
normalization.
To summarize the frequencies of up- and down-regulated genes per
contrast in a single data frame, use the function
get_deg_counts()
.
It is important to note that the columns perc_up
,
perc_down
, and perc_total
show the percentages
of up-regulated, down-regulated, and all differentially expressed genes
@@ -515,10 +515,10 @@
Finally, we can summarize everything in a single publication-ready
figure using the plot plot_expression_triangle()
, which
shows the ‘experimental trio’ (i.e., hybrid and its progenitors) as a
@@ -533,8 +533,8 @@
@@ -548,6 +548,83 @@
Expression-based gene classification
+After identifying DEGs for different contrasts, you’d typically want +to classify your genes into expression partitions based on their +expression patterns. This can be performed with the function +
+expression_partitioning()
, which classifies genes into one +of the 12 categories as in Rapp, +Udall, and Wendel (2009), and into 5 major +classes that summarize the 12 categories. The five +classes are:+
+- +Transgressive up-regulation (UP): gene is +up-regulated in the hybrid as compared to both parents.
+- +Transgressive down-regulation (DOWN): gene is +down-regulated in the hybrid as compared to both parents.
+- +Additivity (ADD): gene expression in the hybrid is +the mean of both parents (additive effect).
+- +Expression-level dominance toward parent 1 +(ELD_P1): gene expression in the hybrid is the same as in +parent 1, but different from parent 2.
+- +Expression-level dominance toward parent 2 +(ELD_P2): gene expression in the hybrid is the same as in +parent 2, but different from parent 1.
+++# Classify genes in expression partitions +exp_partitions <- expression_partitioning(deg_list) + +# Inspect the output +head(exp_partitions) +#> Gene Category Class lFC_F1_vs_P1 lFC_F1_vs_P2 +#> 1 Cre01.g003650 1 ADD 0.7833401 -1.0484704 +#> 2 Cre01.g005150 1 ADD 1.0468778 -0.5043874 +#> 3 Cre01.g008600 1 ADD 5.0497424 -1.4856888 +#> 4 Cre01.g013500 1 ADD 2.1098246 -1.5331691 +#> 5 Cre01.g034850 1 ADD 1.5835491 -0.7610260 +#> 6 Cre01.g800005 1 ADD 1.4927376 -0.9315539 + +# Count number of genes per category +table(exp_partitions$Category) +#> +#> 1 2 3 4 5 6 7 8 9 10 11 12 +#> 113 292 113 3090 152 647 238 763 304 285 1681 2578 + +# Count number of genes per class +table(exp_partitions$Class) +#> +#> UP DOWN ADD ELD_P1 ELD_P2 +#> 1562 636 2691 3394 1973
To visualize the expression partitions as a scatter plot of +expression divergences, you can use the function +
+plot_expression_partitions()
.+ ++# Plot partitions as a scatter plot of divergences +plot_expression_partitions(exp_partitions, group_by = "Category")
By default, genes are grouped by
+Category
. However, you +can also group genes byClass
as follows:+ ++# Group by `Class` +plot_expression_partitions(exp_partitions, group_by = "Class")
You can also visualize the frequencies of genes in each partition +with the function
+plot_partition_frequencies()
.+ ++# Visualize frequency of genes in each partition +## By `Category` (default) +plot_partition_frequencies(exp_partitions)
+++## By `Class` +plot_partition_frequencies(exp_partitions, group_by = "Class")
FAQ @@ -613,7 +690,7 @@
Session information#> glue 1.6.2 2022-02-24 [2] CRAN (R 4.3.1) #> gtable 0.3.4 2023-08-21 [1] CRAN (R 4.3.1) #> highr 0.10 2022-12-22 [2] CRAN (R 4.3.1) -#> htmltools 0.5.6.1 2023-10-06 [2] CRAN (R 4.3.1) +#> htmltools 0.5.7 2023-11-03 [1] CRAN (R 4.3.1) #> HybridExpress * 0.99.0 2023-11-03 [1] Bioconductor #> IRanges * 2.36.0 2023-10-24 [1] Bioconductor #> iterators 1.0.14 2022-02-05 [1] CRAN (R 4.3.1) diff --git a/articles/HybridExpress_files/figure-html/unnamed-chunk-11-1.png b/articles/HybridExpress_files/figure-html/unnamed-chunk-11-1.png index 49f9f25..4e21a8a 100644 Binary files a/articles/HybridExpress_files/figure-html/unnamed-chunk-11-1.png and b/articles/HybridExpress_files/figure-html/unnamed-chunk-11-1.png differ diff --git a/articles/HybridExpress_files/figure-html/unnamed-chunk-12-1.png b/articles/HybridExpress_files/figure-html/unnamed-chunk-12-1.png index 922aa95..6493277 100644 Binary files a/articles/HybridExpress_files/figure-html/unnamed-chunk-12-1.png and b/articles/HybridExpress_files/figure-html/unnamed-chunk-12-1.png differ diff --git a/articles/HybridExpress_files/figure-html/unnamed-chunk-14-1.png b/articles/HybridExpress_files/figure-html/unnamed-chunk-14-1.png new file mode 100644 index 0000000..fea09f3 Binary files /dev/null and b/articles/HybridExpress_files/figure-html/unnamed-chunk-14-1.png differ diff --git a/articles/HybridExpress_files/figure-html/unnamed-chunk-15-1.png b/articles/HybridExpress_files/figure-html/unnamed-chunk-15-1.png new file mode 100644 index 0000000..b548e5b Binary files /dev/null and b/articles/HybridExpress_files/figure-html/unnamed-chunk-15-1.png differ diff --git a/articles/HybridExpress_files/figure-html/unnamed-chunk-16-1.png b/articles/HybridExpress_files/figure-html/unnamed-chunk-16-1.png new file mode 100644 index 0000000..8411944 Binary files /dev/null and b/articles/HybridExpress_files/figure-html/unnamed-chunk-16-1.png differ diff --git a/articles/HybridExpress_files/figure-html/unnamed-chunk-16-2.png b/articles/HybridExpress_files/figure-html/unnamed-chunk-16-2.png new file mode 100644 index 0000000..da329cd Binary files /dev/null and b/articles/HybridExpress_files/figure-html/unnamed-chunk-16-2.png differ diff --git a/articles/HybridExpress_files/figure-html/unnamed-chunk-3-1.png b/articles/HybridExpress_files/figure-html/unnamed-chunk-3-1.png index 6128bd7..5311676 100644 Binary files a/articles/HybridExpress_files/figure-html/unnamed-chunk-3-1.png and b/articles/HybridExpress_files/figure-html/unnamed-chunk-3-1.png differ diff --git a/articles/HybridExpress_files/figure-html/unnamed-chunk-4-1.png b/articles/HybridExpress_files/figure-html/unnamed-chunk-4-1.png index 8202bb9..855f210 100644 Binary files a/articles/HybridExpress_files/figure-html/unnamed-chunk-4-1.png and b/articles/HybridExpress_files/figure-html/unnamed-chunk-4-1.png differ diff --git a/pkgdown.yml b/pkgdown.yml index 2d1e985..317225d 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -3,5 +3,5 @@ pkgdown: 2.0.7 pkgdown_sha: ~ articles: HybridExpress: HybridExpress.html -last_built: 2023-11-03T13:41Z +last_built: 2023-11-03T20:08Z diff --git a/reference/pca_plot-1.png b/reference/pca_plot-1.png index c8bfa99..0962678 100644 Binary files a/reference/pca_plot-1.png and b/reference/pca_plot-1.png differ diff --git a/reference/plot_expression_partitions-1.png b/reference/plot_expression_partitions-1.png index 571ae79..0804cac 100644 Binary files a/reference/plot_expression_partitions-1.png and b/reference/plot_expression_partitions-1.png differ diff --git a/reference/plot_partition_frequencies-1.png b/reference/plot_partition_frequencies-1.png index fb7b1f1..744b914 100644 Binary files a/reference/plot_partition_frequencies-1.png and b/reference/plot_partition_frequencies-1.png differ diff --git a/reference/plot_samplecor-1.png b/reference/plot_samplecor-1.png index 3779e3a..2a3b204 100644 Binary files a/reference/plot_samplecor-1.png and b/reference/plot_samplecor-1.png differ