def parameters(cls): sid_enum = cls._DB_CONNECTOR.distinct(PROBE_EXPERIMENTS_COLLECTION, SAMPLE_ID) rid_enum = cls._DB_CONNECTOR.distinct(PROBE_EXPERIMENTS_COLLECTION, RUN_ID) pid_enum = cls._DB_CONNECTOR.distinct(PROBE_EXPERIMENTS_COLLECTION, PROBE_ID) date_enum = cls._DB_CONNECTOR.distinct(PROBE_EXPERIMENTS_COLLECTION, DATE) date_enum = map(lambda x: x.strftime("%Y_%m_%d"), date_enum) parameters = [ ParameterFactory.format(), ParameterFactory.lc_string(SAMPLE_ID, "Genomic DNA Sample ID(s).", required=False, allow_multiple=True, enum=sid_enum), ParameterFactory.lc_string(RUN_ID, "Run ID(s).", required=False, allow_multiple=True, enum=rid_enum), ParameterFactory.lc_string(PROBE_ID, "Probe ID(s).", required=False, allow_multiple=True, enum=pid_enum), ParameterFactory.date(required=False, enum=date_enum) ] return parameters
def parameters(cls): cls._file_param = ParameterFactory.file("Experiment results file.") cls._sid_param = ParameterFactory.lc_string(SAMPLE_ID, "Genomic DNA Sample ID.") cls._rid_param = ParameterFactory.lc_string(RUN_ID, "Run ID.") cls._date_param = ParameterFactory.date() parameters = [ cls._file_param, cls._sid_param, cls._rid_param, cls._date_param, ] return parameters
def parameters(cls): cls._users_param = ParameterFactory.lc_string(USERS, "Username(s) of individual(s) that performed the run (e.g. ddicara)", allow_multiple=True) cls._date_param = ParameterFactory.date() cls._archive_param = ParameterFactory.archive() cls._beta_param = ParameterFactory.integer(BETA, "Beta (e.g. 17)", required=True, minimum=1, maximum=100) cls._device_param = ParameterFactory.cs_string(DEVICE, "Device description (e.g. PDMS bonded on COP)") cls._dye_profile_metrics_param = ParameterFactory.dye_profile_metrics() cls._surfactant_param = ParameterFactory.cs_string(SURFACTANT, "Surfactant (e.g. RAN 002-105).") parameters = [ cls._users_param, cls._date_param, cls._archive_param, cls._beta_param, cls._device_param, cls._dye_profile_metrics_param, cls._surfactant_param, ] return parameters