Skip to content

R tutorials transformation #1

Description

@mweberr

Hi, I am just going through your R tutorials, which are very useful to learn phyloseq package.
One question I have is about the transformation of the read into relative data.

Why do you choose the median sum and not 100 or the minimum of all samples ?

total = median(sample_sums(carbom))
  standf = function(x, t=total) round(t * (x / sum(x)))
  carbom = transform_sample_counts(carbom, standf)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions