We will be offering mothur and R workshops throughout 2019. Learn more.
The normalize.shared command creates a .norm.shared file.
By default, the method is totalgroup, the norm is set to the number of sequences in your smallest group, all groups in your group file are included and all labels are used.
mothur > normalize.shared(shared=abrecovery.fn.shared)
The groups parameter allows you to select the groups you would like to include in your .norm.shared file.
mothur > normalize.shared(shared=abrecovery.fn.shared, groups=B-C)
The method parameter allows you to select what method you would like to use to normalize. The choices are totalgroup and zscore. We hope to add more ways to normalize in the future, suggestions are welcome!
Relative Abundance = Abundance / Total number of sequences in the group. Normalized Value = Relative Abundance * norm The normalized value is then rounded to the nearest integer.
mothur > normalize.shared(shared=abrecovery.fn.shared, method=totalgroup)
or zscore Normalized Abundance = (Abundance - mean) / standard deviation If using a shared file the normalized value is then rounded to the nearest integer.
mothur > normalize.shared(shared=abrecovery.fn.shared, method=zscore)
The norm parameter allows you to number you would like to normalize to. By default this is set to the number of sequences in your smallest group. If you set norm greater than an abundance of a specific group the group will be removed.
mothur > normalize.shared(shared=abrecovery.fn.shared, norm=100)
There may only be a couple of lines in your OTU data that you are interested in finding the normalized abundance for. There are two options. You could: (i) manually delete the lines you aren't interested in from your list file; (ii) or use the label option. To use the label option with the normalize.shared() command you need to know the labels you are interested in. If you want the normalized abundance for the lines labeled unique, 0.03, 0.05 and 0.10 you would enter:
mothur > normalize.shared(shared=abrecovery.fn.shared, label=unique-0.03-0.05-0.10)
The makerelabund parameter allows you to convert a shared file to a relabund file before you normalize. default=f.