-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsm_Tax4Fun.R
More file actions
20 lines (16 loc) · 1.01 KB
/
sm_Tax4Fun.R
File metadata and controls
20 lines (16 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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