Skip to content

Commit d0aa5c5

Browse files
Merge pull request #92 from adrientaudiere/dev
Change v0.9.1
2 parents 83a502a + 43c364e commit d0aa5c5

File tree

274 files changed

+6807
-1566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+6807
-1566
lines changed

DESCRIPTION

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: MiscMetabar
22
Type: Package
33
Title: Miscellaneous Functions for Metabarcoding Analysis
4-
Version: 0.8.00
4+
Version: 0.9.1
55
Authors@R: person("Adrien", "Taudière", email = "adrien.taudiere@zaclys.net",
66
role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0003-1088-1182"))
77
Description: Facilitate the description, transformation, exploration, and reproducibility of metabarcoding analyses. 'MiscMetabar' is mainly built on top of the 'phyloseq', 'dada2' and 'targets' R packages. It helps to build reproducible and robust bioinformatics pipelines in R. 'MiscMetabar' makes ecological analysis of alpha and beta-diversity easier, more reproducible and more powerful by integrating a large number of tools. Important features are described in Taudière A. (2023) <doi:10.21105/joss.06038>.
@@ -28,11 +28,14 @@ Suggests:
2828
DT,
2929
edgeR,
3030
formattable,
31+
ggalluvial,
32+
ggfittext,
3133
gghalves,
3234
ggh4x,
3335
ggstatsplot,
3436
ggridges,
3537
ggVennDiagram,
38+
glmulti,
3639
gtsummary,
3740
grDevices,
3841
grid,

NAMESPACE

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ S3method(unique_or_na,factor)
55
export(LCBD_pq)
66
export(SRS_curve_pq)
77
export(accu_plot)
8+
export(accu_plot_balanced_modality)
89
export(accu_samp_threshold)
910
export(add_blast_info)
1011
export(add_dna_to_phyloseq)
@@ -13,6 +14,7 @@ export(add_info_to_sam_data)
1314
export(add_new_taxonomy_pq)
1415
export(adonis_phyloseq)
1516
export(adonis_pq)
17+
export(adonis_rarperm_pq)
1618
export(all_object_size)
1719
export(ancombc_pq)
1820
export(are_modality_even_depth)
@@ -45,12 +47,16 @@ export(funky_color)
4547
export(get_file_extension)
4648
export(get_funguild_db)
4749
export(ggVenn_phyloseq)
50+
export(ggaluv_pq)
4851
export(ggbetween_pq)
52+
export(ggscatt_pq)
4953
export(ggvenn_pq)
54+
export(glmutli_pq)
5055
export(graph_test_pq)
5156
export(heat_tree_pq)
5257
export(hill_phyloseq)
5358
export(hill_pq)
59+
export(hill_test_rarperm_pq)
5460
export(hill_tuckey_phyloseq)
5561
export(hill_tuckey_pq)
5662
export(iNEXT_pq)
@@ -91,7 +97,9 @@ export(plot_guild_pq)
9197
export(plot_mt)
9298
export(plot_tax_pq)
9399
export(plot_tsne_pq)
100+
export(plot_var_part_pq)
94101
export(psmelt_samples_pq)
102+
export(rarefy_sample_count_by_modality)
95103
export(read_phyloseq)
96104
export(read_pq)
97105
export(rename_samples)
@@ -116,6 +124,8 @@ export(summary_plot_pq)
116124
export(swarm_clustering)
117125
export(tax_bar_pq)
118126
export(tax_datatable)
127+
export(taxa_as_columns)
128+
export(taxa_as_rows)
119129
export(taxa_only_in_one_level)
120130
export(tbl_sum_samdata)
121131
export(track_wkflow)
@@ -126,6 +136,8 @@ export(tsne_pq)
126136
export(unique_or_na)
127137
export(upset_pq)
128138
export(upset_test_pq)
139+
export(var_par_pq)
140+
export(var_par_rarperm_pq)
129141
export(venn_phyloseq)
130142
export(venn_pq)
131143
export(verify_pq)
@@ -141,10 +153,13 @@ import(purrr)
141153
importFrom(grDevices,col2rgb)
142154
importFrom(lifecycle,deprecated)
143155
importFrom(rlang,.data)
156+
importFrom(stats,anova)
157+
importFrom(stats,as.formula)
144158
importFrom(stats,ave)
145159
importFrom(stats,kruskal.test)
146160
importFrom(stats,na.exclude)
147161
importFrom(stats,na.omit)
162+
importFrom(stats,quantile)
148163
importFrom(stats,reformulate)
149164
importFrom(stats,reorder)
150165
importFrom(stats,runif)

NEWS.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
1-
# MiscMetabar 0.8 (in development)
1+
# MiscMetabar 0.9.1 (in development)
2+
3+
## New functions
4+
- Add functions [taxa_as_rows()] and [taxa_as_columns()] to replace verbose called to [clean_pq()]
5+
- Add function [ggscatt_pq()] to plot and test for effect of a numerical columns in sam_data on Hill number. Its the equivalent for numerical variables of [ggbetween_pq()] which focus on the effect of a factor.
6+
- Add functions [var_par_pq()] , [var_par_rarperm_pq()] and [plot_var_part_pq()] to compute the partition of the variation of community and plot it. It introduce the notion of `rarperm` part in the function name. It refers to the fact that this function compute permutation of samples depth rarefaction to measure the variation due to the random process in rarefaction.
7+
- Add function [hill_test_rarperm_pq()] to test the effect of a factor on hill diversity accounting for the variation due to random nature of the rarefaction by sample depth.
8+
- Add function [rarefy_sample_count_by_modality()] to equalize the number of samples for each levels of a modality (factor)
9+
- Add function [accu_plot_balanced_modality()] to plot accumulation curves with balanced modality (same number of samples per level) and depth rarefaction (same number of sequences per sample)
10+
- Add function [adonis_rarperm_pq()] to compute multiple Permanova analyses on different sample depth rarefaction.
11+
- Add function [ggaluv_pq()] to plot taxonomic distribution in alluvial fashion with ggplot2 (using the [ggalluvial] package)
12+
- Add function [glmutli_pq()] to use automated model selection and multimodel inference with (G)LMs for phyloseq object
13+
14+
15+
## New parameters
16+
17+
- Add param `taxa_ranks` in function [psmelt_samples_pq()] to group results by samples AND taxonomic ranks.
18+
- Add param `hill_scales` in functions [hill_tuckey_pq()] and [hill_pq()] to choose the level of the hill number.
19+
- Add param `na_remove` in function `hill_pq()` to remove samples with NA in the factor fact.
20+
21+
22+
# MiscMetabar 0.8.1
223

324
- Add param `plot_with_tuckey` to `hill_pq()`.,
425
- Add function `formattable_pq()` to make beautiful table of the distribution of taxa across a modality using visualization inside in the table.

R/MiscMetabar-package.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ if (getRversion() >= "2.15.1") {
2323
"update", "upr", "upViewport", "val", "value", "vegdist", "viewport",
2424
"write.table", "x", "x1", "X1", "x2", "y", "y1", "y2", "ymax",
2525
"ymin", ".group", "archetype", "nOTUid", "taxon", "total",
26-
"chim_rm", "condition", "physeq", "seq_tab_Pairs", "nb_samp", "silent"
26+
"chim_rm", "condition", "physeq", "seq_tab_Pairs", "nb_samp", "silent",
27+
"X1_lim1", "X1_lim2", "aicc", "variable", "pos_letters", "alluvium",
28+
"na_remove", "stratum", "to_lodes_form"
2729
))
2830
}
2931

0 commit comments

Comments
 (0)