Learn R Programming

SIPmg (version 3.0)

qSIP_atom_excess_MAGs: Calculate atom fraction excess using q-SIP method

Description

Calculate atom fraction excess using q-SIP method

Usage

qSIP_atom_excess_MAGs(
  physeq,
  control_expr,
  treatment_rep = NULL,
  isotope = "13C",
  df_OTU_W = NULL,
  Gi
)

Value

A list of 2 data.frame objects. 'W' contains the weighted mean buoyant density (W) values for each OTU in each treatment/control. 'A' contains the atom fraction excess values for each OTU. For the 'A' table, the 'Z' column is buoyant density shift, and the 'A' column is atom fraction excess.

Arguments

physeq

A phyloseq object

control_expr

Expression used to identify control samples based on sample_data.

treatment_rep

Which column in the phyloseq sample data designates replicate treatments

isotope

The isotope for which the DNA is labeled with ('13C' or '18O' or '15N')

df_OTU_W

Keep NULL

Gi

GC content of the MAG

Examples

Run this code
data(phylo.qSIP,GC_content)
### Making atomx table
# \donttest{
## Not run::
### BD shift (Z) & atom excess (A)
atomX = qSIP_atom_excess_MAGs(phylo.qSIP,
                         control_expr='Isotope=="12C"',
                         treatment_rep='Replicate',
                         Gi = GC_content)
# }

Run the code above in your browser using DataLab