This repository was archived by the owner on Oct 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorksheet.java
More file actions
283 lines (248 loc) · 6.09 KB
/
Copy pathWorksheet.java
File metadata and controls
283 lines (248 loc) · 6.09 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
package nhs.cardiff.genetics.ngssamplesheets;
/**
* @author Rhys Cooper & Sara Rey
* @Date 16/09/2019
* @version 1.5.2
*
*/
import java.util.ArrayList;
public class Worksheet {
private ArrayList<String> worksheet;
private ArrayList<String> labNo;
private ArrayList<String> position;
private ArrayList<String> user;
private ArrayList<String> test;
private ArrayList<String> updateDate;
private ArrayList<String> panel;
private ArrayList<String> comments;
private ArrayList<String> sexes;
private ArrayList<String> genes;
private ArrayList<String> index;
private ArrayList<String> first;
private ArrayList<String> second;
private ArrayList<String> ident;
private ArrayList<String> order;
public Worksheet(){
this.worksheet = new ArrayList<String>();
this.labNo = new ArrayList<String>();
this.position = new ArrayList<String>();
this.user = new ArrayList<String>();
this.test = new ArrayList<String>();
this.updateDate = new ArrayList<String>();
this.panel = new ArrayList<String>();
this.comments = new ArrayList<String>();
this.sexes = new ArrayList<String>();
this.genes = new ArrayList<String>();
this.index = new ArrayList<String>();
this.first = new ArrayList<String>();
this.second = new ArrayList<String>();
this.ident = new ArrayList<String>();
this.order = new ArrayList<String>();
}
/**
*
* @return Returns worksheet, The shire number of the worksheet
*/
public ArrayList<String> getWorksheet() {
return worksheet;
}
/**
*
* @param worksheet The shire number of the worksheet
*/
public void setWorksheet(String worksheet) {
this.worksheet.add(worksheet);
}
/**
*
* @return Returns labNo, The lab number of the particular sample on the worksheet
*/
public ArrayList<String> getLabNo() {
return labNo;
}
/**
*
* @param labNo The lab number of the particular sample on the worksheet
*/
public void setLabNo(String labNo) {
this.labNo.add(labNo);
}
/**
*
* @return Returns position, The position of the sample on the worksheet
*/
public ArrayList<String> getPosition() {
return position;
}
/**
*
* @param position The position of the sample on the worksheet
*/
public void setPosition(String position) {
this.position.add(position);
}
/**
*
* @return Returns user, The initials of the user who created the worksheet
*/
public ArrayList<String> getUser() {
return user;
}
/**
*
* @param user The initials of the user who created the worksheet
*/
public void setUser(String user) {
this.user.add(user);
}
/**
*
* @return Returns test, The Test requested for this sample on this worksheet
*/
public ArrayList<String> getTest() {
return test;
}
/**
*
* @param test The Test requested for this sample on this worksheet
*/
public void setTest(String test) {
this.test.add(test);
}
/**
*
* @return Returns updateDate, The date the worksheet was created
*/
public ArrayList<String> getUpdateDate() {
return updateDate;
}
/**
*
* @param updateDate The date the worksheet was created
*/
public void setUpdateDate(String updateDate) {
this.updateDate.add(updateDate);
}
/**
*
* @return Returns panel, The panel the requested test is on
*/
public ArrayList<String> getPanel() {
return panel;
}
/**
*
* @param panel The panel the requested test is on
*/
public void setPanel(String panel) {
this.panel.add(panel);
}
/**
*
* @return Returns comments, The comments controls which pipeline is requested on samplesheet FOCUS 4, WCB etc...
*/
public ArrayList<String> getComments() {
return comments;
}
/**
*
* @param comments The comments controls which pipeline is requested on samplesheet FOCUS 4, WCB etc...
*/
public void setComments(String comments) {
this.comments.add(comments);
}
/**
*
* @return Returns sexes, The sex of the patient.
*/
public ArrayList<String> getSexes() { return sexes; }
/**
*
* @param sexes The sex of the patient.
*/
public void setSexes(String sexes) {
this.sexes.add(sexes);
}
/**
*
* @return Returns genes, The genes to be analysed (TAM) or panel applied (PanCancer).
*/
public ArrayList<String> getGenes() { return genes; }
/**
*
* @param genes The genes to be analysed (TAM) or panel applied (PanCancer).
*/
public void setGenes(String genes) {
//Null safe method
if (genes != null) {
if (genes.equals("FOCUS4 DNA")) {
this.genes.add("FOCUS4");
} else {
genes = genes.replaceAll("\\s","");
this.genes.add(genes);
}
}else{
this.genes.add(genes);
}
}
/**
*
* @return Returns index, The index name/identifier for pan cancer samples.
*/
public ArrayList<String> getPanIndexId() { return index; }
/**
*
* @param index The index name/identifier for pan cancer samples.
*/
public void setPanIndexId(String index) {
this.index.add(index);
}
/**
*
* @return Returns first, The first index for pan cancer samples.
*/
public ArrayList<String> getPanFirstIndex() { return first; }
/**
*
* @param first The first index for pan cancer samples.
*/
public void setPanFirstIndex(String first) {
this.first.add(first);
}
/**
*
* @return Returns second, The second index for pan cancer samples (reverse complement).
*/
public ArrayList<String> getPanSecondIndex() { return second; }
/**
*
* @param second The second index for pan cancer samples (reverse complement).
*/
public void setPanSecondIndex(String second) {
this.second.add(second);
}
/**
*
* @return Returns ident, The identifier for the CRUK samples (first name field).
*/
public ArrayList<String> getCRUKIdentifier() { return ident; }
/**
*
* @param ident The identifier for the CRUK samples (first name field).
*/
public void setCRUKIdentifier(String ident) {
this.ident.add(ident);
}
/**
*
* @return Returns order, The order of the samples on the worksheet.
*/
public ArrayList<String> getOrder() { return order; }
/**
*
* @param order The order of the samples on the worksheeet.
*/
public void setOrder(String order) {
this.order.add(order);
}
}