diff --git a/cases_qc/tests/snapshots/snap_test_serializers.py b/cases_qc/tests/snapshots/snap_test_serializers.py index 2a5303297..f5b099f80 100644 --- a/cases_qc/tests/snapshots/snap_test_serializers.py +++ b/cases_qc/tests/snapshots/snap_test_serializers.py @@ -2,364 +2,600 @@ # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals -from snapshottest import Snapshot +from snapshottest import GenericRepr, Snapshot + snapshots = Snapshot() -snapshots["SerializerTest::test_load_00 1"] = { - "caseqc": "a5acdba5-944e-4ae8-ace0-d13ec9e9f4e4", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "keys": [37, 40, 41], - "sample": "index_258-N1-DNA1-WES1", - "sodar_uuid": "65a66b91-8909-4e83-ad53-10567126dde9", - "values": [1, 100, 101], +snapshots['SerializerTest::test_load_00 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000001')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'keys': [ + 37, + 40, + 41 + ], + 'sample': 'index_000-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000000', + 'values': [ + 1, + 100, + 101 + ] } -snapshots["SerializerTest::test_load_01 1"] = { - "caseqc": "ecbe1e84-c850-4417-8f81-a8026a41d02c", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ +snapshots['SerializerTest::test_load_01 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000003')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ { - "entry": "create", - "name": "clearly", - "section": "available", - "value": 42, - "value_float": 3.14, + 'entry': 'word1', + 'name': 'word2', + 'section': 'word0', + 'value': 42, + 'value_float': 3.14 } ], - "sodar_uuid": "c862f5f2-5df6-48c2-9ab1-9142b51c44d9", + 'sodar_uuid': '00000000-0000-4000-8000-000000000002' } -snapshots["SerializerTest::test_load_02 1"] = { - "caseqc": "eb8664ba-e69b-4b89-9fef-8b920f9ce5b8", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ - {"entry": "feel", "name": "church", "section": "central", "value": 42, "value_float": 3.14} - ], - "sample": "index_260-N1-DNA1-WES1", - "sodar_uuid": "b0a6218b-e94f-4023-8c83-061f40180ed4", +snapshots['SerializerTest::test_load_02 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000005')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ + { + 'entry': 'word4', + 'name': 'word5', + 'section': 'word3', + 'value': 42, + 'value_float': 3.14 + } + ], + 'sample': 'index_002-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000004' } -snapshots["SerializerTest::test_load_03 1"] = { - "caseqc": "92a6f491-4fe0-43f3-a882-5aa4c447ad10", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ - {"entry": "work", "name": "keep", "section": "state", "value": 42, "value_float": 3.14} - ], - "sample": "index_261-N1-DNA1-WES1", - "sodar_uuid": "5e8592d2-1839-484f-bb88-1b25c90f1393", +snapshots['SerializerTest::test_load_03 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000007')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ + { + 'entry': 'word7', + 'name': 'word8', + 'section': 'word6', + 'value': 42, + 'value_float': 3.14 + } + ], + 'sample': 'index_003-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000006' } -snapshots["SerializerTest::test_load_04 1"] = { - "caseqc": "ba372e6b-14f5-4c21-92a1-99c4f2c3b5d7", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ - {"entry": "ago", "name": "same", "section": "effect", "value": 42, "value_float": 3.14} - ], - "region_name": "", - "sample": "index_262-N1-DNA1-WES1", - "sodar_uuid": "dede5217-55df-441b-8364-4ea455b77b4d", +snapshots['SerializerTest::test_load_04 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000009')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ + { + 'entry': 'word10', + 'name': 'word11', + 'section': 'word9', + 'value': 42, + 'value_float': 3.14 + } + ], + 'region_name': '', + 'sample': 'index_004-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000008' } -snapshots["SerializerTest::test_load_05 1"] = { - "caseqc": "2077ec67-7477-44db-94fb-0cef4e273f18", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "keys": [37, 40, 41], - "region_name": "sign", - "sample": "index_263-N1-DNA1-WES1", - "sodar_uuid": "2015f5b0-54fa-4f47-9b32-d35a2a35e69c", - "values": [1, 100, 101], +snapshots['SerializerTest::test_load_05 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000011')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'keys': [ + 37, + 40, + 41 + ], + 'region_name': 'word12', + 'sample': 'index_005-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000010', + 'values': [ + 1, + 100, + 101 + ] } -snapshots["SerializerTest::test_load_06 1"] = { - "caseqc": "e55d7700-52de-4fa6-b6df-32db2236a69a", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ - {"entry": "them", "name": "computer", "section": "dog", "value": 42, "value_float": 3.14} - ], - "region_name": "", - "sample": "index_264-N1-DNA1-WES1", - "sodar_uuid": "bf3b400b-386f-413e-8f17-44cba902beed", +snapshots['SerializerTest::test_load_06 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000013')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ + { + 'entry': 'word14', + 'name': 'word15', + 'section': 'word13', + 'value': 42, + 'value_float': 3.14 + } + ], + 'region_name': '', + 'sample': 'index_006-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000012' } -snapshots["SerializerTest::test_load_07 1"] = { - "caseqc": "0c31c2d0-0317-477f-8d09-e21e9d7dfad3", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ - { - "entry": "notice", - "name": "movement", - "section": "decide", - "value": 42, - "value_float": 3.14, - } - ], - "region_name": "", - "sample": "index_265-N1-DNA1-WES1", - "sodar_uuid": "055ae05f-b697-4018-8a2d-73c9f39a9a0a", +snapshots['SerializerTest::test_load_07 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000015')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ + { + 'entry': 'word17', + 'name': 'word18', + 'section': 'word16', + 'value': 42, + 'value_float': 3.14 + } + ], + 'region_name': '', + 'sample': 'index_007-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000014' } -snapshots["SerializerTest::test_load_08 1"] = { - "caseqc": "298ca091-ed4f-4c68-8b2f-12fc669eeaca", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ +snapshots['SerializerTest::test_load_08 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000017')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ { - "entry": "decision", - "name": "north", - "section": "senior", - "value": 42, - "value_float": 3.14, + 'entry': 'word20', + 'name': 'word21', + 'section': 'word19', + 'value': 42, + 'value_float': 3.14 } ], - "sample": "index_266-N1-DNA1-WES1", - "sodar_uuid": "a23e3ffe-1e1b-4ef6-846a-256705b64571", + 'sample': 'index_008-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000016' } -snapshots["SerializerTest::test_load_09 1"] = { - "caseqc": "e222918b-29ed-404a-9c87-1886285f7d67", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ - {"entry": "drive", "name": "live", "section": "of", "value": 42, "value_float": 3.14} - ], - "sodar_uuid": "e16af9c9-1316-428c-95b6-a3d294024421", +snapshots['SerializerTest::test_load_09 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000019')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ + { + 'entry': 'word23', + 'name': 'word24', + 'section': 'word22', + 'value': 42, + 'value_float': 3.14 + } + ], + 'sodar_uuid': '00000000-0000-4000-8000-000000000018' } -snapshots["SerializerTest::test_load_10 1"] = { - "caseqc": "3d204381-a24b-48e3-85aa-6e7aed95ce35", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ +snapshots['SerializerTest::test_load_10 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000021')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ { - "entry": "benefit", - "name": "reflect", - "section": "whether", - "value": 42, - "value_float": 3.14, + 'entry': 'word26', + 'name': 'word27', + 'section': 'word25', + 'value': 42, + 'value_float': 3.14 } ], - "sodar_uuid": "95c1f475-251a-46c9-85e5-c116f45abc36", + 'sodar_uuid': '00000000-0000-4000-8000-000000000020' } -snapshots["SerializerTest::test_load_11 1"] = { - "caseqc": "d4e84156-1b39-4562-8d94-5b01484f5b2b", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ - {"entry": "away", "name": "American", "section": "last", "value": 42, "value_float": 3.14} - ], - "sample": "index_269-N1-DNA1-WES1", - "sodar_uuid": "9845349c-6594-46a8-942e-0e190ae597a1", +snapshots['SerializerTest::test_load_11 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000023')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ + { + 'entry': 'word29', + 'name': 'word30', + 'section': 'word28', + 'value': 42, + 'value_float': 3.14 + } + ], + 'sample': 'index_011-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000022' } -snapshots["SerializerTest::test_load_12 1"] = { - "caseqc": "21bffc82-8dec-4682-8993-9e3da17f3bd4", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ - {"entry": "risk", "name": "later", "section": "board", "value": 42, "value_float": 3.14} - ], - "sample": "index_270-N1-DNA1-WES1", - "sodar_uuid": "8bf4192e-4a2b-4526-9579-3f43eebbe77e", +snapshots['SerializerTest::test_load_12 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000025')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ + { + 'entry': 'word32', + 'name': 'word33', + 'section': 'word31', + 'value': 42, + 'value_float': 3.14 + } + ], + 'sample': 'index_012-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000024' } -snapshots["SerializerTest::test_load_13 1"] = { - "caseqc": "a2288abc-8a60-47cf-ae25-a2c451643b7c", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ - {"entry": "sing", "name": "fine", "section": "energy", "value": 42, "value_float": 3.14} - ], - "sodar_uuid": "442f3082-e736-462f-9802-b9209d4125fd", +snapshots['SerializerTest::test_load_13 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000027')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ + { + 'entry': 'word35', + 'name': 'word36', + 'section': 'word34', + 'value': 42, + 'value_float': 3.14 + } + ], + 'sodar_uuid': '00000000-0000-4000-8000-000000000026' } -snapshots["SerializerTest::test_load_14 1"] = { - "caseqc": "ea204d4c-e335-479d-baa6-b736e9e2e11a", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [{"contig_len": 12345, "contig_name": "actually", "cov": 3.0}], - "sample": "index_272-N1-DNA1-WES1", - "sodar_uuid": "acc5d1d2-0d47-4ee4-8140-a39210f9ce31", +snapshots['SerializerTest::test_load_14 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000029')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ + { + 'contig_len': 12345, + 'contig_name': 'word37', + 'cov': 3.0 + } + ], + 'sample': 'index_014-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000028' } -snapshots["SerializerTest::test_load_15 1"] = { - "caseqc": "2fad5feb-f69e-419b-a8e8-9f22c7b6db56", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ - {"entry": "girl", "name": "side", "section": "dog", "value": 42, "value_float": 3.14} - ], - "sample": "index_273-N1-DNA1-WES1", - "sodar_uuid": "446e5da5-adbb-447d-9305-4c65b7e32dff", +snapshots['SerializerTest::test_load_15 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000031')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ + { + 'entry': 'word39', + 'name': 'word40', + 'section': 'word38', + 'value': 42, + 'value_float': 3.14 + } + ], + 'sample': 'index_015-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000030' } -snapshots["SerializerTest::test_load_16 1"] = { - "caseqc": "86a350c0-dde1-4e10-8ad4-755ede9ddf62", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "keys": [37, 40, 41], - "sample": "index_274-N1-DNA1-WES1", - "sodar_uuid": "57291c32-2130-4ad5-b271-4288b559254e", - "values": [1, 100, 101], +snapshots['SerializerTest::test_load_16 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000033')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'keys': [ + 37, + 40, + 41 + ], + 'sample': 'index_016-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000032', + 'values': [ + 1, + 100, + 101 + ] } -snapshots["SerializerTest::test_load_17 1"] = { - "caseqc": "3a4d1335-22cb-424d-a979-fce9c308a414", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "keys": [ - "PCT of bases in wgs with coverage [100x:inf)", - "PCT of bases in wgs with coverage [50x:100x)", - ], - "sample": "index_275-N1-DNA1-WES1", - "sodar_uuid": "86f9664c-9561-4106-bf6a-4851efb77452", - "values": [0.21, 26.83], +snapshots['SerializerTest::test_load_17 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000035')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'keys': [ + 'PCT of bases in wgs with coverage [100x:inf)', + 'PCT of bases in wgs with coverage [50x:100x)' + ], + 'sample': 'index_017-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000034', + 'values': [ + 0.21, + 26.83 + ] } -snapshots["SerializerTest::test_load_18 1"] = { - "caseqc": "ef909d21-bbe1-486f-8961-37fa1f90fc8b", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "metrics": [ - {"entry": "thank", "name": "his", "section": "everything", "value": 42, "value_float": 3.14} - ], - "sample": "index_276-N1-DNA1-WES1", - "sodar_uuid": "b4df16b7-defd-4c86-a5f4-f97917beab21", +snapshots['SerializerTest::test_load_18 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000037')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'metrics': [ + { + 'entry': 'word42', + 'name': 'word43', + 'section': 'word41', + 'value': 42, + 'value_float': 3.14 + } + ], + 'sample': 'index_018-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000036' } -snapshots["SerializerTest::test_load_19 1"] = { - "caseqc": "0de4395f-fe5d-4db2-9b69-3431d99d1b2d", - "chk": [ - {"qualities_crc32": "commercial", "read_names_crc32": "during", "sequences_crc32": "sport"} - ], - "cov": [{"count": 5, "value": 5}], - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "fbc": [{"cycle": 4, "percentages": [0.1, 0.2, 0.3, 0.4, 0.5, 0.6]}], - "ffq": [{"counts": [2], "cycle": 2}], - "frl": [{"count": 6, "value": 6}], - "gcd": [ - { - "dp_percentile_10": 0.1, - "dp_percentile_25": 0.1, - "dp_percentile_50": 0.1, - "dp_percentile_75": 0.1, - "dp_percentile_90": 0.1, - "gc_content": 0.1, - "unique_seq_percentiles": 0.1, - } - ], - "idd": [{"dels": 1, "ins": 1, "length": 1}], - "isize": [ - { - "insert_size": 1, - "pairs_inward": 1, - "pairs_other": 1, - "pairs_outward": 1, - "pairs_total": 1, - } - ], - "lbc": [{"cycle": 5, "percentages": [0.1, 0.2, 0.3, 0.4, 0.5, 0.6]}], - "lfq": [{"counts": [3], "cycle": 3}], - "lrl": [{"count": 7, "value": 7}], - "sample": "index_277-N1-DNA1-WES1", - "sn": [{"key": "dark", "value": 1}], - "sodar_uuid": "8e3bed6d-be1b-4d7d-a26a-e6768afc6c59", +snapshots['SerializerTest::test_load_19 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000039')"), + 'chk': [ + { + 'qualities_crc32': 'word47', + 'read_names_crc32': 'word45', + 'sequences_crc32': 'word46' + } + ], + 'cov': [ + { + 'count': 0, + 'value': 0 + } + ], + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'fbc': [ + { + 'cycle': 0, + 'percentages': [ + 0.1, + 0.2, + 0.3, + 0.4, + 0.5, + 0.6 + ] + } + ], + 'ffq': [ + { + 'counts': [ + 0 + ], + 'cycle': 0 + } + ], + 'frl': [ + { + 'count': 1, + 'value': 1 + } + ], + 'gcd': [ + { + 'dp_percentile_10': 0.0, + 'dp_percentile_25': 0.0, + 'dp_percentile_50': 0.0, + 'dp_percentile_75': 0.0, + 'dp_percentile_90': 0.0, + 'gc_content': 0.0, + 'unique_seq_percentiles': 0.0 + } + ], + 'idd': [ + { + 'dels': 0, + 'ins': 0, + 'length': 0 + } + ], + 'isize': [ + { + 'insert_size': 0, + 'pairs_inward': 0, + 'pairs_other': 0, + 'pairs_outward': 0, + 'pairs_total': 0 + } + ], + 'lbc': [ + { + 'cycle': 1, + 'percentages': [ + 0.1, + 0.2, + 0.3, + 0.4, + 0.5, + 0.6 + ] + } + ], + 'lfq': [ + { + 'counts': [ + 1 + ], + 'cycle': 1 + } + ], + 'lrl': [ + { + 'count': 2, + 'value': 2 + } + ], + 'sample': 'index_019-N1-DNA1-WES1', + 'sn': [ + { + 'key': 'word44', + 'value': 0 + } + ], + 'sodar_uuid': '00000000-0000-4000-8000-000000000038' } -snapshots["SerializerTest::test_load_20 1"] = { - "caseqc": "0a20a11c-f226-4d79-94e3-2b74c42e4be1", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "gcc": [{"cycle": 6, "percentages": [0.1, 0.2, 0.3, 0.4, 0.5, 0.6]}], - "gcf": [{"count": 2, "gc_content": 0.2}], - "gcl": [{"count": 3, "gc_content": 0.30000000000000004}], - "gct": [{"cycle": 7, "percentages": [0.1, 0.2, 0.3, 0.4, 0.5, 0.6]}], - "ic": [{"cycle": 1, "dels_fwd": 1, "dels_rev": 1, "ins_fwd": 1, "ins_rev": 1}], - "mapq": [{"count": 9, "value": 9}], - "rl": [{"count": 8, "value": 8}], - "sample": "index_278-N1-DNA1-WES1", - "sodar_uuid": "7a616f1a-fb37-4165-afc8-833ea6bf8737", +snapshots['SerializerTest::test_load_20 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000041')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'gcc': [ + { + 'cycle': 2, + 'percentages': [ + 0.1, + 0.2, + 0.3, + 0.4, + 0.5, + 0.6 + ] + } + ], + 'gcf': [ + { + 'count': 0, + 'gc_content': 0.0 + } + ], + 'gcl': [ + { + 'count': 1, + 'gc_content': 0.1 + } + ], + 'gct': [ + { + 'cycle': 3, + 'percentages': [ + 0.1, + 0.2, + 0.3, + 0.4, + 0.5, + 0.6 + ] + } + ], + 'ic': [ + { + 'cycle': 0, + 'dels_fwd': 0, + 'dels_rev': 0, + 'ins_fwd': 0, + 'ins_rev': 0 + } + ], + 'mapq': [ + { + 'count': 4, + 'value': 4 + } + ], + 'rl': [ + { + 'count': 3, + 'value': 3 + } + ], + 'sample': 'index_020-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000040' } -snapshots["SerializerTest::test_load_21 1"] = { - "caseqc": "b7542261-3110-4a40-aacd-4104c8cefedb", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "qc_fail": { - "duplicates": 3, - "duplicates_primary": 3, - "fragment_first": 3, - "fragment_last": 3, - "mapped": 3, - "mapped_primary": 3, - "paired": 3, - "primary": 3, - "properly_paired": 3, - "secondary": 3, - "singletons": 3, - "supplementary": 3, - "total": 3, - "with_itself_and_mate_mapped": 3, - "with_mate_mapped_to_different_chr": 3, - "with_mate_mapped_to_different_chr_mapq5": 3, +snapshots['SerializerTest::test_load_21 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000043')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'qc_fail': { + 'duplicates': 1, + 'duplicates_primary': 1, + 'fragment_first': 1, + 'fragment_last': 1, + 'mapped': 1, + 'mapped_primary': 1, + 'paired': 1, + 'primary': 1, + 'properly_paired': 1, + 'secondary': 1, + 'singletons': 1, + 'supplementary': 1, + 'total': 1, + 'with_itself_and_mate_mapped': 1, + 'with_mate_mapped_to_different_chr': 1, + 'with_mate_mapped_to_different_chr_mapq5': 1 }, - "qc_pass": { - "duplicates": 2, - "duplicates_primary": 2, - "fragment_first": 2, - "fragment_last": 2, - "mapped": 2, - "mapped_primary": 2, - "paired": 2, - "primary": 2, - "properly_paired": 2, - "secondary": 2, - "singletons": 2, - "supplementary": 2, - "total": 2, - "with_itself_and_mate_mapped": 2, - "with_mate_mapped_to_different_chr": 2, - "with_mate_mapped_to_different_chr_mapq5": 2, + 'qc_pass': { + 'duplicates': 0, + 'duplicates_primary': 0, + 'fragment_first': 0, + 'fragment_last': 0, + 'mapped': 0, + 'mapped_primary': 0, + 'paired': 0, + 'primary': 0, + 'properly_paired': 0, + 'secondary': 0, + 'singletons': 0, + 'supplementary': 0, + 'total': 0, + 'with_itself_and_mate_mapped': 0, + 'with_mate_mapped_to_different_chr': 0, + 'with_mate_mapped_to_different_chr_mapq5': 0 }, - "sample": "index_279-N1-DNA1-WES1", - "sodar_uuid": "a2c8ff8c-a9d8-4893-8049-3e3a87ffe5da", + 'sample': 'index_021-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000042' } -snapshots["SerializerTest::test_load_22 1"] = { - "caseqc": "db24acb8-0c4a-42db-9cd4-cda079c1c0ca", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "records": [{"contig_len": 1, "contig_name": "put", "mapped": 1, "unmapped": 1}], - "sample": "index_280-N1-DNA1-WES1", - "sodar_uuid": "2de1e145-a3ba-4445-97ad-755d887a1889", +snapshots['SerializerTest::test_load_22 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000045')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'records': [ + { + 'contig_len': 0, + 'contig_name': 'word48', + 'mapped': 0, + 'unmapped': 0 + } + ], + 'sample': 'index_022-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000044' } -snapshots["SerializerTest::test_load_23 1"] = { - "caseqc": "32c18c12-2d63-470d-9185-a911a96478dc", - "chrom_counts": [{"chrom_name": "meet", "normalized_counts": 0.1}], - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "sample": "index_281-N1-DNA1-WES1", - "sodar_uuid": "db888856-8fd6-4785-b594-4637fe33b285", - "summary": [{"key": "because", "value": 1}], +snapshots['SerializerTest::test_load_23 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000047')"), + 'chrom_counts': [ + { + 'chrom_name': 'word50', + 'normalized_counts': 0.0 + } + ], + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'sample': 'index_023-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000046', + 'summary': [ + { + 'key': 'word49', + 'value': 0 + } + ] } -snapshots["SerializerTest::test_load_24 1"] = { - "caseqc": "156eb1d9-2699-408c-ba6d-335620f6c9fb", - "date_created": "2012-01-14T12:00:01Z", - "date_modified": "2012-01-14T12:00:01Z", - "records": [{"key": "teach", "value": 0.0}], - "region_name": "WGS", - "sample": "index_282-N1-DNA1-WES1", - "sodar_uuid": "8052e4f4-58b8-47a7-a760-f0942aaf90b9", +snapshots['SerializerTest::test_load_24 1'] = { + 'caseqc': GenericRepr("UUID('00000000-0000-4000-8000-000000000049')"), + 'date_created': '2012-01-14T12:00:01Z', + 'date_modified': '2012-01-14T12:00:01Z', + 'records': [ + { + 'key': 'word51', + 'value': 0.0 + } + ], + 'region_name': 'WGS', + 'sample': 'index_024-N1-DNA1-WES1', + 'sodar_uuid': '00000000-0000-4000-8000-000000000048' }