Mercurial > repos > ecology > vigiechiro_bilanenrichipf
comparison BilanEnrichiPF.R @ 2:911f80dce38d draft default tip
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/vigiechiro commit 4707473e9991d095310f475a54e041c95accd873
author | ecology |
---|---|
date | Wed, 05 Jun 2019 13:48:45 -0400 |
parents | 775809e2f6c8 |
children |
comparison
equal
deleted
inserted
replaced
1:775809e2f6c8 | 2:911f80dce38d |
---|---|
19 strptime(pretemps, "%Y%m%d_%H%M%OS",tz="UTC")-7200 | 19 strptime(pretemps, "%Y%m%d_%H%M%OS",tz="UTC")-7200 |
20 } | 20 } |
21 | 21 |
22 | 22 |
23 | 23 |
24 IdC2=fread(args[1]) | 24 IdC2=fread(args[1],encoding="UTF-8") |
25 | 25 |
26 if(substr(IdC2$`nom du fichier`[1],2,2)!="a") | 26 if(substr(IdC2$`nom du fichier`[1],2,2)!="a") |
27 { | 27 { |
28 # print("Protocole non conforme, ce script doit etre lance uniquement pour un protocole Point Fixe") | 28 # print("Protocole non conforme, ce script doit etre lance uniquement pour un protocole Point Fixe") |
29 print("Wrong protocol, please only use this tool for a \'Point Fixe\' protocol.") | 29 print("Wrong protocol, please only use this tool for a \'Point Fixe\' protocol.") |
30 }else{ | 30 }else{ |
31 refPF=fread(args[2]) | 31 refPF=fread(args[2],encoding="UTF-8") |
32 GroupList=fread(args[3]) | 32 GroupList=fread(args[3],encoding="UTF-8") |
33 | 33 |
34 IdC2$ConfV[is.na(IdC2$ConfV)]="" | 34 IdC2$ConfV[is.na(IdC2$ConfV)]="" |
35 | 35 |
36 | 36 |
37 #compute error risk by species (minimum error among files) | 37 #compute error risk by species (minimum error among files) |
230 background = styleInterval(c(1, 10, 50), c("white", "khaki", "orange", "orangered"))) %>% | 230 background = styleInterval(c(1, 10, 50), c("white", "khaki", "orange", "orangered"))) %>% |
231 formatStyle(columns=ListH, backgroundColor = styleInterval(brks, clrs)) | 231 formatStyle(columns=ListH, backgroundColor = styleInterval(brks, clrs)) |
232 | 232 |
233 saveWidget(SummHTMLH,"output-hourly.html") | 233 saveWidget(SummHTMLH,"output-hourly.html") |
234 # write.csv2(SummPartH,"output-hourly.tabular",row.names=F) | 234 # write.csv2(SummPartH,"output-hourly.tabular",row.names=F) |
235 write.table(SummPartH,"output-hourly.tabular",row.names=F,sep="\n") | 235 write.table(SummPartH,"output-hourly.tabular",row.names=F,sep="\t") |
236 | 236 |
237 } | 237 } |