-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.js
123 lines (109 loc) · 2.92 KB
/
constants.js
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
// Author: Dany Fu ([email protected])
const META = {
DEEPWELL_BC: "Extraction Plate Barcode",
DEEPWELL_WELL_NUM: "Extraction Plate Well Location",
RNA_PLATE_BC: "RNA Elution Plate Barcode",
RNA_PLATE_WELL_NUM: "RNA Elution Plate Well Location",
QPCR_PLATE_BC: "qPCR Plate Barcode",
QPCR_PLATE_WELL_NUM: "qPCR Plate Well Location",
STATUS: "Sample Process Status",
RESULT: "COVID-19 Test Result",
N1: "CT Value (N1)",
N2: "CT Value (N2)",
RP: "CT Value (RP)",
NUM_ATTEMPTS: "Number of Attempts",
SAMPLE_PREP_TECH: "Sample Aliquot User",
EXTRACTION_TECH: "RNA Extraction User",
QPCR_PREP_TECH: "qPCR Prep User",
QPCR_TECH: "qPCR User",
SAMPLE_PREP_SN: "Sample Aliquot Instrument SN",
EXTRACTION_SN: "RNA Extraction Instrument SN",
QPCR_PREP_SN: "qPCR Prep Instrument SN",
QPCR_SN: "qPCR SN",
PERFORMED: "Performed",
TUBE_CONDITION: "Sample Tube Condition"
};
const STATUS_VAL = {
SAMPLE_PREP_DONE: "Sample Transferred to Extraction Plate",
RNA_DONE: "RNA Extracted",
QPCR_PREP_DONE: "qPCR Plate Prepared",
QPCR_DONE: "Finished",
QPCR_COMPLETE: "qPCR Completed",
RE_EXTRACT: "Re-run RNA Extraction",
RE_QPCR: "Re-run qPCR"
};
// key is from the "Call" column of the QuantStudio csv
// value is the string that it's mapped to on eLab
const TEST_RESULT = {
POSITIVE: "Positive",
NEGATIVE: "Negative",
INCONCLUSIVE: "Inconclusive - recollect",
INVALID: "Invalid - recollect",
WARNING: "Control Failed"
};
const ORIGIN_VAL = {
SAMPLE_ALIQUOT: "SAMPLE_ALIQUOT",
RNA_EXTRACTION: "RNA_EXTRACTION",
QPCR_PREP: "QPCR_PREP"
};
const HAMILTON_LOG_HEADERS = {
INDEX: "Index",
PROTOCOL: "Protocol",
SAMPLE_TUBE_BC: "Sample Tube Barcode",
DEST_BC: "Output Barcode",
DEST_WELL_NUM: "Output Well Number",
REAGENT_NAMES: "Reagent Names",
REAGENT_NUMS: "Reagent Lot Numbers",
USER: "UserName",
SERIAL_NUM: "Machine SN",
ELAB_ID: "eLab Sample ID"
};
const QPCR_LOG_HEADERS = {
WELL: "Well Position",
SAMPLE: "Sample",
CALL: "Call",
TARGET: "Target",
CQ: "Cq"
};
const CONTROLS = {
PCR_POS: "PCR_POS",
NTC: "NTC_",
NEC: "NEC_"
};
const CONTROL_WELLS = ["A1", "C1", "C2", "D1", "D2", "E1", "E2", "F1", "F2"];
const PLATE384 = {
ROW: 16,
COL: 24
};
const MAX_ATTEMPTS = 5;
//constants that are unique to pooled testing
const POOLED = {
INDIVIDUAL: "Individual",
POOLED: "Pooled",
POSITIVE: "Presumptive Positive",
};
const TUBE_CONDITION = {
OK: "OK",
DAMAGED: "Damaged"
};
const PREFETCH_CODES = {
NOT_FOUND: "NOT FOUND",
DUPLICATE: "DUPLICATE",
ERROR: "ERROR",
INDIV_POOLED: "INDIVIDUAL POOLED"
}
module.exports = {
HAMILTON_LOG_HEADERS: HAMILTON_LOG_HEADERS,
QPCR_LOG_HEADERS: QPCR_LOG_HEADERS,
META: META,
STATUS_VAL: STATUS_VAL,
TEST_RESULT: TEST_RESULT,
ORIGIN_VAL: ORIGIN_VAL,
CONTROLS: CONTROLS,
CONTROL_WELLS: CONTROL_WELLS,
PLATE384: PLATE384,
MAX_ATTEMPTS: MAX_ATTEMPTS,
POOLED: POOLED,
TUBE_CONDITION: TUBE_CONDITION,
PREFETCH_CODES
};