initial dump of R code for fungi and bacteria