Skip to contents

Returns the community of a single MiCo object in a tibble format or a list of communities in tibble format for MiCoAl objects.

Usage

getCo(object)

# S4 method for class 'MiCo'
getCo(object)

# S4 method for class 'MiCoAl'
getCo(object)

Arguments

object

An object of class MiCoAl

Value

A tibble with the community data.

A list with the community data.

Functions

  • getCo(MiCo): Get the Community

  • getCo(MiCoAl): Get the Community

Examples

c1 <- newMiCo(ac_A1R12_1)
c2 <- newMiCo(ac_A1R12_2)
a <- newMiCoAl(c1, c2)

getCo(c1)
#> # A tibble: 28 × 3
#>    species metabolites  fluxes
#>    <chr>   <chr>         <dbl>
#>  1 A1R12   ac            0.773
#>  2 I2R16   ac          -10.8  
#>  3 A1R12   acald        -1.12 
#>  4 I2R16   acald         1.12 
#>  5 A1R12   ala__D        0.760
#>  6 I2R16   ala__D       -0.760
#>  7 A1R12   ala__L        1.22 
#>  8 I2R16   ala__L       -1.22 
#>  9 A1R12   asp__L       -0.583
#> 10 I2R16   asp__L        0.583
#> # ℹ 18 more rows
getCo(a)
#> $ac_A1R12_1
#> # A tibble: 28 × 3
#>    species metabolites  fluxes
#>    <chr>   <chr>         <dbl>
#>  1 A1R12   ac            0.773
#>  2 I2R16   ac          -10.8  
#>  3 A1R12   acald        -1.12 
#>  4 I2R16   acald         1.12 
#>  5 A1R12   ala__D        0.760
#>  6 I2R16   ala__D       -0.760
#>  7 A1R12   ala__L        1.22 
#>  8 I2R16   ala__L       -1.22 
#>  9 A1R12   asp__L       -0.583
#> 10 I2R16   asp__L        0.583
#> # ℹ 18 more rows
#> 
#> $ac_A1R12_2
#> # A tibble: 38 × 3
#>    species metabolites    fluxes
#>    <chr>   <chr>           <dbl>
#>  1 A1R12   ac            0.949  
#>  2 I3M07   ac          -10.9    
#>  3 A1R12   acald         2.09   
#>  4 I3M07   acald        -2.09   
#>  5 A1R12   ala__D        1.24   
#>  6 I3M07   ala__D       -1.24   
#>  7 A1R12   ala__L        1.84   
#>  8 I3M07   ala__L       -1.84   
#>  9 A1R12   arg__L       -0.00286
#> 10 I3M07   arg__L        0.00286
#> # ℹ 28 more rows
#>