File size: 1,791 Bytes
e918a5c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

"""Stable ``failure_code`` strings for observation metadata (pathway_analysis_env v1)."""

# Session / episode
EPISODE_ALREADY_DONE = "episode_already_done"
UNKNOWN_ACTION_TYPE = "unknown_action_type"
MAX_STEPS_EXCEEDED = "max_steps_exceeded"

# eval protocol
SUBMIT_PREREQUISITE_DE = "submit_prerequisite_de"
SUBMIT_PREREQUISITE_ORA = "submit_prerequisite_ora"
ORA_GENE_LIST_BLOCKED = "ora_gene_list_blocked"
COMPARE_REQUIRES_ORA = "compare_requires_ora"
SUBMIT_EMPTY_HYPOTHESIS = "submit_empty_hypothesis"

# understand_experiment_design
DESIGN_PARTIAL_CONTRAST = "design_partial_contrast"
DESIGN_INVALID_CONTRAST_NAMES = "design_invalid_contrast_names"
DESIGN_INSUFFICIENT_SAMPLES_PER_ARM = "design_insufficient_samples_per_arm"

# run_differential_expression
DE_MISSING_CONTRAST = "de_missing_contrast"
DE_PYDESeq2_UNAVAILABLE = "de_pydeseq2_unavailable"
DE_DESEQ2_FAILED = "de_deseq2_failed"
DE_INVALID_COUNTS_MATRIX = "de_invalid_counts_matrix"
DE_TOO_FEW_GENES_AFTER_FILTER = "de_too_few_genes_after_filter"
CASE_SAMPLE_METADATA_MISMATCH = "case_sample_metadata_mismatch"

# run_pathway_enrichment
ORA_DE_PREREQUISITE = "ora_de_prerequisite"
ORA_NO_PATHWAY_DEFINITIONS = "ora_no_pathway_definitions"

# compare_pathways
COMPARE_MISSING_PATHWAY_NAMES = "compare_missing_pathway_names"

# ask_expert
EXPERT_DISABLED = "expert_disabled"
EXPERT_BUDGET_EXHAUSTED = "expert_budget_exhausted"

# submit (analytics)
SUBMIT_INCORRECT_HYPOTHESIS = "submit_incorrect_hypothesis"

# strict mode umbrella (specific code still preferred when set)
STRICT_TERMINATION = "strict_termination"