Other packages > Find by keyword >

SRS  

Scaling with Ranked Subsampling
View on CRAN: Click here


Download and install SRS package within the R console
Install from CRAN:
install.packages("SRS")

Install from Github:
library("remotes")
install_github("cran/SRS")

Install by package version:
library("remotes")
install_version("SRS", "0.2.3")



Attach the package and use:
library("SRS")
Maintained by
Lukas Beule
[Scholar Profile | Author Map]
First Published: 2020-08-31
Latest Update: 2022-03-27
Description:
Analysis of species count data in ecology often requires normalization to an identical sample size. Rarefying (random subsampling without replacement), which is a popular method for normalization, has been widely criticized for its poor reproducibility and potential distortion of the community structure. In the context of microbiome count data, researchers explicitly advised against the use of rarefying. An alternative to rarefying is scaling with ranked subsampling (SRS). SRS consists of two steps. In the first step, the total counts for all OTUs (operational taxonomic units) or species in each sample are divided by a scaling factor chosen in such a way that the sum of the scaled counts Cscaled equals Cmin. In the second step, the non-integer Cscaled values are converted into integers by an algorithm that we dub ranked subsampling. The Cscaled value for each OTU or species is split into the integer part Cint(Cint = floor(Cscaled)) and the fractional part Cfrac (Cfrac = Cscaled - Cints). Since the sum of Cint is smaller or equal to Cmin, additionaldelta C = Cmin - the sum of Cint counts have to be added to the library to reach the total count of Cmin. This is achieved as follows. OTUs are ranked in the descending order of their Cfrac values. Beginning with the OTU of the highest rank, single count per OTU is added to the normalized library until the total number of added counts reaches delta C and the sum of all counts in the normalized library equals Cmin. When the lowest Cfrag involved in picking delta C counts is shared by several OTUs, the OTUs used for adding a single count to the library are selected in the order of their Cint values. This selection minimizes the effect of normalization on the relative frequencies of OTUs. OTUs with identical Cfrag as well as Cint are sampled randomly without replacement. See Beule & Karlovsky (2020) <doi:10.7717/peerj.9593> for details.
How to cite:
Lukas Beule (2020). SRS: Scaling with Ranked Subsampling. R package version 0.2.3, https://cran.r-project.org/web/packages/SRS. Accessed 07 Apr. 2025.
Previous versions and publish date:
0.1.0 (2020-08-31 12:00), 0.1.1 (2020-10-02 10:22), 0.1.2 (2020-10-29 16:30), 0.2.0 (2020-11-14 10:30), 0.2.1 (2020-11-17 09:40), 0.2.2 (2021-02-10 14:00)
Other packages that cited SRS R package
View SRS citation profile
Other R packages that SRS depends, imports, suggests or enhances
Complete documentation for SRS
Functions, R codes and Examples using the SRS R package
Some associated functions: SRS . SRS.shiny.app . SRScurve . 
Some associated R codes: SRS.R . SRS.shiny.app.R . SRScurve.R .  Full SRS package functions and examples
Downloads during the last 30 days
03/0803/0903/1003/1103/1203/1303/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/2703/2803/2903/3003/3104/0104/0204/0304/0404/0504/06Downloads for SRS010203040506070TrendBars

Today's Hot Picks in Authors and Packages

ASMap  
Linkage Map Construction using the MSTmap Algorithm
Functions for Accurate and Speedy linkage map construction, manipulation and diagnosis of Doubled Ha ...
Download / Learn more Package Citations See dependency  
nutriNetwork  
Structure Learning with Copula Graphical Model
Statistical tool for learning the structure of direct associations among variables for continuous d ...
Download / Learn more Package Citations See dependency  
r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
probout  
Unsupervised Multivariate Outlier Probabilities for Large Datasets
Estimates unsupervised outlier probabilities for multivariate numeric data with many observations fr ...
Download / Learn more Package Citations See dependency  
letsR  
Data Handling and Analysis in Macroecology
Handling, processing, and analyzing geographic data on species' distributions and environmental var ...
Download / Learn more Package Citations See dependency  
MetaAnalyser  
An Interactive Visualisation of Meta-Analysis as a Physical Weighing Machine
An interactive application to visualise meta-analysis data as a physical weighing machine. The inte ...
Download / Learn more Package Citations See dependency  

24,012

R Packages

207,311

Dependencies

64,867

Author Associations

24,013

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA