Estimates the A.C.E. model of heritabily (with confidence intervals) from a phyloseq object using the twinlm function.
calculate_ACE(ps, zygosity, dz, family_id, verbose = TRUE)
| ps | A |
|---|---|
| zygosity | The name of the column in sample_data() that contains the |
| dz | The level in the |
| family_id | The name of the column in sample_data() that contains the |
| verbose | Logical. If FALSE, messages will be supressed. |
This function returns a data.frame with A.C.E. values (and confidence intervals) for each ASV.
df <- calculate_ACE(ps, zygosity = "Zygosity", dz = "DZ", family_id = "Family_ID", verbose = TRUE)#> Error in calculate_ACE(ps, zygosity = "Zygosity", dz = "DZ", family_id = "Family_ID", verbose = TRUE): object 'ps' not found