Mercurial > repos > immport-devteam > flowai
annotate FCSflowAI.R @ 1:34397a84faf1 draft
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
author | azomics |
---|---|
date | Tue, 23 Jun 2020 18:34:02 -0400 |
parents | |
children | fab7c5deeb65 |
rev | line source |
---|---|
1
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
1 #!/usr/bin/env Rscript |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
2 # |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
3 # Authors: Gianni Monaco |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
4 # |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
5 # Reference: flowAI: automatic and interactive anomaly discerning |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
6 # tools for flow cytometry data. |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
7 # Gianni Monaco, Hao Chen, Michael Poidinger, Jinmiao Chen, |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
8 # Joao Pedro de Magalhaes and Anis Larbi |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
9 # Bioinformatics (2016) |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
10 # doi: 10.1093/bioinformatics/btw191 |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
11 # |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
12 |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
13 library(flowAI) |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
14 library(methods) |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
15 |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
16 # parse arguments |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
17 |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
18 args <- commandArgs(trailingOnly = TRUE) |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
19 |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
20 remFS <- if(args[4]) c("FSC", "SSC") else NULL |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
21 |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
22 flow_auto_qc( |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
23 fcsfiles = args[1], |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
24 remove_from = args[2], |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
25 alphaFR = as.numeric(args[3]), |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
26 ChRemoveFS = remFS, |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
27 outlierFS = args[5], |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
28 pen_valueFS = as.numeric(args[6]), |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
29 sideFM = args[7], |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
30 fcs_QC = ifelse(args[9] == "None", FALSE, "_QC"), |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
31 fcs_highQ = ifelse(args[10] == "None", FALSE, "_highQ"), |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
32 fcs_lowQ = ifelse(args[11] == "None", FALSE, "_lowQ"), |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
33 folder_results = FALSE) |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
34 |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
35 try(file.rename(dir(".", pattern = ".*_QC.html"), args[8]), silent =TRUE) |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
36 try(file.rename(dir(".", pattern = ".*_QC.fcs"), args[9]), silent =TRUE) |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
37 try(file.rename(dir(".", pattern = ".*_highQ.fcs"), args[10]), silent =TRUE) |
34397a84faf1
"planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/flowai commit 83ef47729f2d2cdae84171761a6795df9fb63389"
azomics
parents:
diff
changeset
|
38 try(file.rename(dir(".", pattern = ".*_lowQ.fcs"), args[11]), silent =TRUE) |