# HG changeset patch # User azomics # Date 1627422476 0 # Node ID 67d79ba0f7aade80827ddd72601a6accad1ba6a0 "planemo upload for repository https://github.com/ImmPortDB/immport-galaxy-tools/tree/master/flowtools/check_headers commit 14b2e4d834a9856236affb7b77debecca360c542" diff -r 000000000000 -r 67d79ba0f7aa images/checkpanel.png Binary file images/checkpanel.png has changed diff -r 000000000000 -r 67d79ba0f7aa images/h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/images/h Tue Jul 27 21:47:56 2021 +0000 @@ -0,0 +1,1 @@ + diff -r 000000000000 -r 67d79ba0f7aa metacyto_checkpanel.R --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/metacyto_checkpanel.R Tue Jul 27 21:47:56 2021 +0000 @@ -0,0 +1,37 @@ +#!/usr/bin/env Rscript +###################################################################### +# Copyright (c) 2018 Northrop Grumman. +# All rights reserved. +###################################################################### +# +# Version 1 - January 2018 +# Author: Cristel Thomas +# +# + +library(MetaCyto) + +check_panel <- function(df, outfile = "") { + report <- panelSummary(df, ".", cluster = F, width = 30, height = 20) + markers <- data.frame("Markers" = row.names(report)) + s <- cbind(markers, report) + write.table(s, file = outfile, quote = F, row.names = F, col.names = T, sep = "\t") +} + +check_input_format <- function(infile = "", outfile = "") { + df <- read.table(infile, sep = "\t", header = T, colClasses = "character") + nm <- colnames(df) + check_ab <- if ("antibodies" %in% nm) TRUE else FALSE + check_sdy <- if ("study_id" %in% nm) TRUE else FALSE + + if (check_sdy && check_ab) { + check_panel(df, outfile) + } else { + quit(save = "no", status = 10, runLast = FALSE) + } +} + +################################################################################ +args <- commandArgs(trailingOnly = TRUE) + +check_input_format(args[1], args[2]) diff -r 000000000000 -r 67d79ba0f7aa metacyto_checkpanel.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/metacyto_checkpanel.xml Tue Jul 27 21:47:56 2021 +0000 @@ -0,0 +1,81 @@ + + for MetaCyto + + bioconductor-metacyto + + + + + + + + + + + + + + + + (graph) + + + + + + + + + + + + + + + + + + + + + + + diff -r 000000000000 -r 67d79ba0f7aa test-data/mc_preprocesss_summary.metacyto_summary.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/mc_preprocesss_summary.metacyto_summary.txt Tue Jul 27 21:47:56 2021 +0000 @@ -0,0 +1,7 @@ +study_id antibodies filenames +group 1 FSC-A|SSC-A|CD11A|CD4|CD16|CD28|CD95|CD3|CD62L|CD8B|CCR7|TIME|SAMPLE_ID Hs90208Bd_C20090205_00.583331.fcs +group 1 FSC-A|SSC-A|CD11A|CD4|CD16|CD28|CD95|CD3|CD62L|CD8B|CCR7|TIME|SAMPLE_ID Hs90210Bd_C20090205_00.583065.fcs +group 1 FSC-A|SSC-A|CD11A|CD4|CD16|CD28|CD95|CD3|CD62L|CD8B|CCR7|TIME|SAMPLE_ID Hs90211Bd_C20090205_00.583066.fcs +group 2 FSC-A|SSC-A|CD11A|CD4|CD16|CD28|CD95|CD3|CD62L|CD8B|CCR7|TIME|SAMPLE_ID T_Hs60003Bd_C200900407A_00.581924.fcs +group 2 FSC-A|SSC-A|CD11A|CD4|CD16|CD28|CD95|CD3|CD62L|CD8B|CCR7|TIME|SAMPLE_ID T_Hs60011Bd_C200900505A_00.581822.fcs +group 2 FSC-A|SSC-A|CD11A|CD4|CD16|CD28|CD95|CD3|CD62L|CD8B|CCR7|TIME|SAMPLE_ID T_Hs60012Bd_C200900505A_00.581833.fcs