R/example_great_apes_microbiota.R

Defines functions example_great_apes_microbiota

Documented in example_great_apes_microbiota

example_great_apes_microbiota <-
function(name,path=getwd()){
  great_apes_microbiota <- NULL
  data("great_apes_microbiota", envir = environment())
  write.tree(great_apes_microbiota[[1]],file = paste(path,"/host_tree_",name,".tre",sep=""))
  write.dna(great_apes_microbiota[[2]],paste(path,"/alignment_",name,"_OTU0001.fas",sep=""), format = "fasta",nbcol = -1,colsep="",colw=ncol(great_apes_microbiota[[2]]))
  write.dna(great_apes_microbiota[[3]],paste(path,"/alignment_",name,"_OTU0002.fas",sep=""), format = "fasta",nbcol = -1,colsep="",colw=ncol(great_apes_microbiota[[3]]))
  write.dna(great_apes_microbiota[[4]],paste(path,"/alignment_",name,"_OTU0003.fas",sep=""), format = "fasta",nbcol = -1,colsep="",colw=ncol(great_apes_microbiota[[4]]))
}
BPerezLamarque/HOME documentation built on May 17, 2023, 7:02 a.m.