8000 Replace subsampleCounts with rarefyAssay by thpral · Pull Request #462 · microbiome/OMA · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Replace subsampleCounts with rarefyAssay #462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion inst/assets/bibliography.bib
Original file line number Diff line number Diff line change
Expand Up @@ -2150,4 +2150,26 @@ @article{Legendre2001
pages = {271--280},
doi = {10.1007/s004420100716},
year = {2001}
}
}

@article{Schloss2024rarefaction1,
author = {Patrick D. Schloss},
title = {Rarefaction is currently the best approach to control for uneven sequencing effort in amplicon sequence analyses},
journal = {{mSphere}},
volume = {9},
number = {2},
pages = {e00354-23},
doi = {10.1128/msphere.00354-23},
year = {2024}
}

@article{Schloss2024rarefaction2,
author = {Patrick D. Schloss},
title = {Waste not, want not: revisiting the analysis that called into question the practice of rarefaction},
journal = {{mSphere}},
volume = {9},
number = {1},
pa 10000 ges = {e00355-23},
doi = {10.1128/msphere.00355-23},
year = {2024}
}
7 changes: 4 additions & 3 deletions inst/pages/12_quality_control.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,10 @@ plotColData(tse,"sum","SampleType", colour_by = "SampleType") +
```

In addition, data can be rarefied with
[subsampleCounts](https://microbiome.github.io/mia/reference/subsampleCounts.html),
which normalises the samples to an equal number of reads. However,
this practice has been discouraged for the analysis of differentially
[rarefyAssay](https://microbiome.github.io/mia/reference/rarefyAssay.html),
which normalises the samples to an equal number of reads.
This remains controversial, however, and strategies to mitigate the information loss in rarefaction have been proposed [@Schloss2024rarefaction1] [@Schloss2024rarefaction2].
Moreover, this practice has been discouraged for the analysis of differentially
abundant microorganisms (see [@mcmurdie2014waste]).

### Contaminant sequences
Expand Down
3 changes: 1 addition & 2 deletions inst/pages/98_exercises.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ colData(tse)$Barcode_full_length
### Library sizes

1. Calculate library sizes
2. Subsample / rarefy the counts (see: subsampleCounts)
2. Subsample / rarify the counts (see: rarefyAssay)

Useful functions: nrow, ncol, dim, summary, table, quantile, unique, scater::addPerCellQC, mia::mergeFeaturesByRank

Expand Down Expand Up @@ -1296,4 +1296,3 @@ experiments in the MAE.
Great job! You performed a cross-correlation analysis between two experiments of
a MAE and visualized the results with a heatmap. You are also able to customise
the correlation method and significance testing used for the analysis.

Loading
0