changeset 10:444f1e7fe177 draft

Uploaded
author sarahinraauzeville
date Thu, 21 Dec 2017 09:09:09 -0500
parents bd5ba02b1f71
children 702db6efce51
files sm_Tax4Fun.R
diffstat 1 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sm_Tax4Fun.R	Thu Dec 21 09:09:09 2017 -0500
@@ -0,0 +1,20 @@
+# The function -------------------------------------
+#---------------------------------------------------
+GalaxyFrogsTax <- function(input.file,
+                      reference,
+                      output.file = "Tax4FunProfile.txt"
+                      ) {
+library(Tax4Fun)
+folderReferenceData<- reference  
+
+Tax4FunOutput<-Tax4Fun(importSilvaNgsData(input.file), folderReferenceData) # optionnal: fctProfiling = TRUE, refProfile = "UProc", shortReadMode = TRUE, normCopyNo = TRUE)
+#folderReferenceData (required): a character vector with one character string indicating the folder location of the unzipped reference data. The reference data can be  obtained  from  the  Tax4Fun  website  http://tax4fun.gobics.de/  ("SILVA  Reference data").
+#reference = "/galaxydata/galaxy-preprod/my_tools/sm_Tax4Fun/SILVA123/"
+
+Tax4FunProfile <- Tax4FunOutput$Tax4FunProfile
+Tax4FunProfile <- data.frame(t(Tax4FunOutput$Tax4FunProfile))
+#View(Tax4FunProfile)
+
+write.table(Tax4FunProfile, "Tax4FunProfile.txt", sep="\t")
+
+} #fin de la fonction