public Parameters GetParameters(IMatrixData mdata, ref string errorString) { return (new Parameters( new SingleChoiceParam("Column") { Values = mdata.StringColumnNames, Help = "The text column that the filtering should be based on." }, new StringParam("Search string") { Help = "String that is searched in the specified column.", Value = "" }, new BoolParam("Match case"), new BoolParam("Match whole word") { Value = true }, new SingleChoiceParam("Mode") { Values = new[] { "Remove matching rows", "Keep matching rows" }, Help = "If 'Remove matching rows' is selected, rows matching the criteria will be removed while " + "all other rows will be kept. If 'Keep matching rows' is selected, the opposite will happen.", Value = 0 }, PerseusPluginUtils.GetFilterModeParam(true) )); }
public Parameters GetParameters(IMatrixData mdata, ref string errorString) { Parameters[] subParams = new Parameters[mdata.CategoryRowCount]; for (int i = 0; i < mdata.CategoryRowCount; i++) { string[] values = mdata.GetCategoryRowValuesAt(i); int[] sel = values.Length == 1 ? new[] { 0 } : new int[0]; subParams[i] = new Parameters(new Parameter[] { new MultiChoiceParam("Values", sel) { Values = values, Help = "The value that should be present to discard/keep the corresponding row." } }); } return (new Parameters(new SingleChoiceWithSubParams("Row") { Values = mdata.CategoryRowNames, SubParams = subParams, Help = "The categorical row that the filtering should be based on.", ParamNameWidth = 50, TotalWidth = 731 }, new SingleChoiceParam("Mode") { Values = new[] { "Remove matching columns", "Keep matching columns" }, Help = "If 'Remove matching columns' is selected, rows having the values specified above will be removed while " + "all other rows will be kept. If 'Keep matching columns' is selected, the opposite will happen." }, PerseusPluginUtils.GetFilterModeParam(false))); }
public Parameters GetParameters(IMatrixData mdata, ref string errorString) { string[] selection = ArrayUtils.Concat(mdata.NumericColumnNames, mdata.ColumnNames); return (new Parameters(ArrayUtils.Concat(PerseusUtils.GetNumFilterParams(selection), PerseusPluginUtils.GetFilterModeParam(true)))); }
public Parameters GetParameters(IMatrixData mdata, ref string errorString) { return (new Parameters(new [] { PerseusPluginUtils.GetMinValuesParam(true), new SingleChoiceWithSubParams("Mode") { Values = new[] { "In total", "In each group", "In at least one group" }, SubParams = new[] { new Parameters(new Parameter[0]), new Parameters(new Parameter[] { new SingleChoiceParam("Grouping") { Values = mdata.CategoryRowNames } }), new Parameters(new Parameter[] { new SingleChoiceParam("Grouping") { Values = mdata.CategoryRowNames } }) }, ParamNameWidth = 50, TotalWidth = 731 }, PerseusPluginUtils.GetValuesShouldBeParam(), PerseusPluginUtils.GetFilterModeParam(false) })); }
public Parameters GetParameters(IMatrixData mdata, ref string errorString) { return (new Parameters(PerseusPluginUtils.GetMinValuesParam(false), new SingleChoiceWithSubParams("Mode") { Values = new[] { "In total" }, SubParams = { new Parameters(new Parameter[0]) }, ParamNameWidth = 50, TotalWidth = 731 }, PerseusPluginUtils.GetValuesShouldBeParam(), PerseusPluginUtils.GetFilterModeParam(true))); }
public Parameters GetParameters(IMatrixData mdata, ref string errorString) { return (new Parameters(new Parameter[] { new IntParam("Number of rows", mdata.RowCount), PerseusPluginUtils.GetFilterModeParam(true) })); }