Normalise read counts to 100, i.e. in percent relative abundance per sample

normaliseTo100(data)

Arguments

data

(required) Data list as loaded with amp_load.

Value

A modified ampvis2 object

Examples

data("AalborgWWTPs")
AalborgWWTPs
#> ampvis2 object with 5 elements. 
#> Summary of OTU table:
#>      Samples         OTUs  Total#Reads    Min#Reads    Max#Reads Median#Reads 
#>           67         9430      2045128        17772        44326        31209 
#>    Avg#Reads 
#>      30524.3 
#> 
#> Assigned taxonomy:
#>      Kingdom       Phylum        Class        Order       Family        Genus 
#>   9430(100%) 9215(97.72%) 8282(87.83%) 7644(81.06%) 6746(71.54%) 5228(55.44%) 
#>      Species 
#>    23(0.24%) 
#> 
#> Metadata variables: 5 
#>  SampleID, Plant, Date, Year, Period
normalised <- normaliseTo100(AalborgWWTPs)
normalised
#> ampvis2 object with 5 elements. 
#> Summary of OTU table:
#> Samples    OTUs 
#>      67    9430 
#> (The read counts have been normalised)
#> 
#> Assigned taxonomy:
#>      Kingdom       Phylum        Class        Order       Family        Genus 
#>   9430(100%) 9215(97.72%) 8282(87.83%) 7644(81.06%) 6746(71.54%) 5228(55.44%) 
#>      Species 
#>    23(0.24%) 
#> 
#> Metadata variables: 5 
#>  SampleID, Plant, Date, Year, Period