-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshared_testing.go
132 lines (129 loc) · 4 KB
/
shared_testing.go
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
package smile_databricks_gateway
import (
"encoding/json"
)
var RequestJSON = `
{
"smileRequestId": "6cca6166-875a-11eb-ae9e-acde48001122",
"igoRequestId": "IGO_TEST_REQUEST",
"genePanel": "GENESET101_BAITS",
"projectManagerName": "marge simpson",
"piEmail": "",
"labHeadName": "bart simpson",
"labHeadEmail": "[email protected]",
"investigatorName": "lisa simpson",
"investigatorEmail": "[email protected]",
"dataAnalystName": "",
"dataAnalystEmail": "",
"otherContactEmails": "[email protected]",
"dataAccessEmails": "",
"qcAccessEmails": "",
"isCmoRequest": true,
"bicAnalysis": false,
"samples": [
{
"smileSampleId": "afe74fba-8756-11eb-9b45-acde48001122",
"smilePatientId": "6cc7394f-875a-11eb-91ec-acde48001122",
"cmoSampleName": "brooklyn sluggers",
"sampleName": "IGO_TEST_SAMPLE",
"sampleType": "Normal",
"oncotreeCode": "TPLL",
"collectionYear": "",
"tubeId": "4157451784",
"cfDNA2dBarcode": "8029250670",
"qcReports": [
{
"qcReportType": "LIBRARY",
"comments": "",
"investigatorDecision": "Continue processing"
}
],
"libraries": [
{
"libraryIgoId": "22022_CC_3_1",
"libraryConcentrationNgul": 34.2,
"captureConcentrationNm": "1.461988304093567",
"captureInputNg": "50.0",
"captureName": "Pool-22022_BZ-22022_CC-Tube7_1",
"runs": [
{
"runMode": "HiSeq High Output",
"runId": "CRX_7395",
"flowCellId": "HGJMLBBXY",
"readLength": "101/8/8/101",
"runDate": "2020-05-20",
"flowCellLanes": [
1,
2,
3,
4,
5,
6,
7
],
"fastqs": [
"/FASTQ/Project_22022_CC/Sample_LMNO_4396_N_IGO_22022_CC_3/LMNO_4396_N_IGO_22022_CC_3_S144_R1_001.fastq.gz",
"/FASTQ/Project_22022_CC/Sample_LMNO_4396_N_IGO_22022_CC_3/LMNO_4396_N_IGO_22022_CC_3_S144_R2_001.fastq.gz"
]
}
]
}
],
"cmoPatientId": "C-TX6DNG",
"primaryId": "22022_CC_3",
"investigatorSampleId": "LMNO_4396_N",
"species": "Human",
"sex": "F",
"tumorOrNormal": "Normal",
"preservation": "EDTA-Streck",
"sampleClass": "Blood",
"sampleOrigin": "Buffy Coat",
"tissueLocation": "Blood",
"baitSet": "GENESET101_BAITS",
"genePanel": "GENESET101_BAITS",
"datasource": "igo",
"igoComplete": true,
"cmoSampleIdFields": {
"naToExtract": "",
"sampleType": "Buffy Coat",
"normalizedPatientId": "MRN_REDACTED",
"recipe": "GENESET101_BAITS"
},
"patientAliases": [
{
"namespace": "cmo",
"value": "C-TX6DNG"
}
],
"sampleAliases": [
{
"namespace": "igoId",
"value": "22022_CC_3"
},
{
"namespace": "investigatorId",
"value": "LMNO_4396_N"
}
],
"additionalProperties": {
"isCmoSample": "true",
"igoRequestId": "IGO_TEST_REQUEST"
}
}
],
"pooledNormals": [
"/FASTQ/Project_POOLEDNORMALS/Sample_FFPEPOOLEDNORMAL_IGO_GENESET101_ACCGTCCT/FFPEPOOLEDNORMAL_IGO_GENESET101_ACCGTCCT_S118_R1_001.fastq.gz",
"/FASTQ/Project_POOLEDNORMALS/Sample_FFPEPOOLEDNORMAL_IGO_GENESET101_ACCGTCCT/FFPEPOOLEDNORMAL_IGO_GENESET101_ACCGTCCT_S118_R2_001.fastq.gz",
"/FASTQ/Project_POOLEDNORMALS/Sample_FROZENPOOLEDNORMAL_IGO_GENESET101_TGTCTAAC/FROZENPOOLEDNORMAL_IGO_GENESET101_TGTCTAAC_S22_R1_001.fastq.gz",
"/FASTQ/Project_POOLEDNORMALS/Sample_FROZENPOOLEDNORMAL_IGO_GENESET101_TGTCTAAC/FROZENPOOLEDNORMAL_IGO_GENESET101_TGTCTAAC_S22_R2_001.fastq.gz"
],
"igoProjectId": "22022"
}
`
func UnmarshalT[T any](b []byte) (T, error) {
var target T
if err := json.Unmarshal(b, &target); err != nil {
return target, err
}
return target, nil
}