Skip to content

Commit dacb139

Browse files
Add output results of corncob models to a table
1 parent c0d7005 commit dacb139

File tree

6 files changed

+2235
-132
lines changed

6 files changed

+2235
-132
lines changed

BRC_growth_rate_microbiome.RMD

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,8 @@ p_corncob_loc <- p_corncob_loc +
17241724
labs(title = paste(comparison_string, collapse = " - ")) +
17251725
coord_cartesian(ylim = c(-10, 10))
17261726
print(p_corncob_loc)
1727+
1728+
write.csv(da_Loc_df, file = paste0("./Results/corncob_", comparison_string[1], "_vs_", comparison_string[2], ".csv"))
17271729
```
17281730

17291731
Modelling differential abundance and variance between locations discovered `length(da_Loc$significant_taxa)`
@@ -1766,6 +1768,8 @@ p_corncob_rock <- p_corncob_rock +
17661768
labs(title = paste(comparison_string, collapse = " - ")) +
17671769
coord_cartesian(ylim = c(-10, 10))
17681770
print(p_corncob_rock)
1771+
1772+
write.csv(da_Rock_df, file = paste0("./Results/corncob_", comparison_string[1], "_vs_", comparison_string[2], ".csv"))
17691773
```
17701774

17711775
Modelling differential abundance and variance between rock types discovered `length(da_Rock$significant_taxa)`
@@ -1809,6 +1813,8 @@ p_corncob_locExroc <- p_corncob_locExroc +
18091813
labs(title = paste(comparison_string, collapse = " - ")) +
18101814
coord_cartesian(ylim = c(-10, 10))
18111815
print(p_corncob_locExroc)
1816+
1817+
write.csv(da_Loc_exRock_df, file = paste0("./Results/corncob_", comparison_string[1], "_vs_", comparison_string[2], "_ExRockType.csv"))
18121818
```
18131819

18141820
Modelling differential abundance between locations, while controlling for rock type discovered `length(da_Loc_exRock$significant_taxa)`
@@ -1833,7 +1839,6 @@ plot(mod260_Loc, color = "Location", shape = "Rock.type") # add total = TRUE for
18331839
### Compose figures
18341840
```{r Figures, cache=F}
18351841
# composite_plot <- ((p_alpha + p_taxa_box + plot_layout(widths = c(1, 2))) /(p_ord + pSTAMPR1) + plot_annotation(tag_levels = 'A') & theme(plot.tag = element_text(size = f_size)))
1836-
18371842
composite_plot <- (p_alpha + p_ord) /(p_taxa_box) / (pSTAMPR1) +
18381843
plot_layout(heights = c(1.5, 1, 1)) +
18391844
plot_annotation(tag_levels = 'A') & theme(plot.tag = element_text(size = f_size))

BRC_growth_rate_microbiome.html

Lines changed: 131 additions & 129 deletions
Large diffs are not rendered by default.

BRC_growth_rate_microbiome.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
How fast does biological rock crust grow?
22
================
3-
09 March, 2021
3+
20 April, 2021
44

55
- [Setting general parameters:](#setting-general-parameters)
66
- [Description](#description)
@@ -5283,6 +5283,10 @@ print(p_corncob_loc)
52835283

52845284
![](BRC_growth_rate_figures/corncob%20-%20location-1.svg)<!-- -->
52855285

5286+
``` r
5287+
write.csv(da_Loc_df, file = paste0("./Results/corncob_", comparison_string[1], "_vs_", comparison_string[2], ".csv"))
5288+
```
5289+
52865290
Modelling differential abundance and variance between locations
52875291
discovered `length(da_Loc$significant_taxa)`
52885292

@@ -5334,6 +5338,10 @@ print(p_corncob_rock)
53345338

53355339
![](BRC_growth_rate_figures/corncob%20-%20rock-1.svg)<!-- -->
53365340

5341+
``` r
5342+
write.csv(da_Rock_df, file = paste0("./Results/corncob_", comparison_string[1], "_vs_", comparison_string[2], ".csv"))
5343+
```
5344+
53375345
Modelling differential abundance and variance between rock types
53385346
discovered `length(da_Rock$significant_taxa)`
53395347

@@ -5386,6 +5394,10 @@ print(p_corncob_locExroc)
53865394

53875395
![](BRC_growth_rate_figures/corncob%20-%20loc%20exl.%20rock-1.svg)<!-- -->
53885396

5397+
``` r
5398+
write.csv(da_Loc_exRock_df, file = paste0("./Results/corncob_", comparison_string[1], "_vs_", comparison_string[2], "_ExRockType.csv"))
5399+
```
5400+
53895401
Modelling differential abundance between locations, while controlling
53905402
for rock type discovered `length(da_Loc_exRock$significant_taxa)`
53915403

@@ -5442,7 +5454,6 @@ plot(mod260_Loc, color = "Location", shape = "Rock.type") # add total = TRUE for
54425454

54435455
``` r
54445456
# composite_plot <- ((p_alpha + p_taxa_box + plot_layout(widths = c(1, 2))) /(p_ord + pSTAMPR1) + plot_annotation(tag_levels = 'A') & theme(plot.tag = element_text(size = f_size)))
5445-
54465457
composite_plot <- (p_alpha + p_ord) /(p_taxa_box) / (pSTAMPR1) +
54475458
plot_layout(heights = c(1.5, 1, 1)) +
54485459
plot_annotation(tag_levels = 'A') & theme(plot.tag = element_text(size = f_size))

0 commit comments

Comments
 (0)