fpbarthel / GLASS

GLASS consortium
MIT License
37 stars 13 forks source link

Consolidate MD-LP09/MD-0137 and MD-LP20/MD-0112 #91

Closed fpbarthel closed 5 years ago

fpbarthel commented 5 years ago

It turns out MD-LP09 and MD-0137 are in fact the same patient, as well as MD-LP20 and MD-0112. We now need to consolidate all their data into the same patient barcode.

Affected aliquots:

GLSS-MD-LP09-R1-01D-WGS-2AEXZ1 >> GLSS-MD-0137-R1-01D-WGS-2AEXZ1
GLSS-MD-LP09-TP-01D-WGS-L1K3MT >> GLSS-MD-0137-TP-01D-WGS-L1K3MT 
GLSS-MD-LP09-NB-01D-WGS-C42CZJ >> GLSS-MD-0137-NB-01D-WGS-C42CZJ
GLSS-MD-0137-R1-01D-WXS-GBFAG8
GLSS-MD-0137-TP-01D-WXS-9LXGRU
GLSS-MD-0137-NB-01D-WXS-KOXSFV

GLSS-MD-LP20-R1-01D-WGS-YG70ME >> GLSS-MD-0112-R1-01D-WGS-YG70ME
GLSS-MD-LP20-TP-01D-WGS-WIQ0DD >> GLSS-MD-0112-TP-01D-WGS-WIQ0DD
GLSS-MD-LP20-NB-01D-WGS-CDM1PT >> GLSS-MD-0112-NB-01D-WGS-CDM1PT
GLSS-MD-0112-NB-01D-WXS-Y6PUVW
GLSS-MD-0112-R2-01D-WXS-P1B0I2
GLSS-MD-0112-R1-01D-WXS-GI18JQ

To-Do:

fpbarthel commented 5 years ago

Update aliquots:

UPDATE biospecimen.aliquots SET aliquot_barcode = 'GLSS-MD-0137-R1-01D-WGS-2AEXZ1', aliquot_portion = 1, sample_barcode = 'GLSS-MD-0137-R1' WHERE aliquot_barcode = 'GLSS-MD-LP09-R1-01D-WGS-2AEXZ1';
UPDATE biospecimen.aliquots SET aliquot_barcode = 'GLSS-MD-0137-TP-01D-WGS-L1K3MT ', aliquot_portion = 1, sample_barcode = 'GLSS-MD-0137-TP' WHERE aliquot_barcode = 'GLSS-MD-LP09-TP-01D-WGS-L1K3MT';
UPDATE biospecimen.aliquots SET aliquot_barcode = 'GLSS-MD-0137-NB-01D-WGS-C42CZJ', aliquot_portion = 1, sample_barcode = 'GLSS-MD-0137-NB' WHERE aliquot_barcode = 'GLSS-MD-LP09-NB-01D-WGS-C42CZJ';
UPDATE biospecimen.aliquots SET aliquot_barcode = 'GLSS-MD-0112-R1-01D-WGS-YG70ME', aliquot_portion = 1, sample_barcode = 'GLSS-MD-0112-R1' WHERE aliquot_barcode = 'GLSS-MD-LP20-R1-01D-WGS-YG70ME';
UPDATE biospecimen.aliquots SET aliquot_barcode = 'GLSS-MD-0112-TP-01D-WGS-WIQ0DD', aliquot_portion = 1, sample_barcode = 'GLSS-MD-0112-TP' WHERE aliquot_barcode = 'GLSS-MD-LP20-TP-01D-WGS-WIQ0DD';
UPDATE biospecimen.aliquots SET aliquot_barcode = 'GLSS-MD-0112-NB-01D-WGS-CDM1PT', aliquot_portion = 1, sample_barcode = 'GLSS-MD-0112-NB' WHERE aliquot_barcode = 'GLSS-MD-LP20-NB-01D-WGS-CDM1PT';
fpbarthel commented 5 years ago

Turns out that for MD-0112 there is no TP sample and in fact R2 represents the primary.

UPDATE biospecimen.aliquots SET aliquot_barcode = 'GLSS-MD-0112-R2-01D-WGS-WIQ0DD', aliquot_portion = 1, sample_barcode = 'GLSS-MD-0112-R2' WHERE aliquot_barcode = 'GLSS-MD-LP20-TP-01D-WGS-WIQ0DD';

Note: obviously this is a temporary fix and should be fixed later.

fpbarthel commented 5 years ago

Done