Skip to content

Instantly share code, notes, and snippets.

@jotech
Last active October 12, 2021 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jotech/bb28c3d59baeba4b9d7f115257916888 to your computer and use it in GitHub Desktop.
Save jotech/bb28c3d59baeba4b9d7f115257916888 to your computer and use it in GitHub Desktop.
Analyzing bacterial interaction and cross-feeding patterns with BacArena
#
# The sihumi example data set consists of a simulation of 8 gut microbes growing on a western diet for 8 hours.
# Here, we use it to study microbial interactions
#
library(BacArena)
data("sihumi_test")
plotGrowthCurve(sihumi_test)[[2]]
# check for most changing substance concentrations
getVarSubs(sihumi_test)
subs <- names(head(getVarSubs(sihumi_test),30))
plotSubCurve(sihumi_test, mediac=subs)[[1]]
# what are bacteria doing with these substances?
plotSpecActivity(sihumi_test, subs=subs)[[2]]
# find crossfeeding interactions
findFeeding3(sihumi_test, mets = subs, time=6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment