fundacion-sadosky / genis

GENis
https://www.fundacionsadosky.org.ar/genis/
GNU Affero General Public License v3.0
7 stars 3 forks source link

Verify if it is reasonable to allow to upload profiles with no analysis data. #111

Open javieriserte opened 2 months ago

javieriserte commented 2 months ago

Profiles that contain markers with "0" alleles seem to cause problems when computing LR values.

example:

{
    "_id": "AR-B-Z-1151",
    "globalCode": "AR-B-Z-1151",
    "internalSampleCode": "perfil ejemplo 2",
    "assignee": "setup",
    "categoryId": "EvidenciaParcial",
    "deleted": false,
    "genotypification": {
        "1": {
            "AMEL": [
                "X",
                "Y"
            ],
            "CSF1PO": [
                "6",
                "15"
            ]
        },
        "2": {
            "DXS7132": [
                0
            ],
            "DXS7423": [
                0
            ],
            "HPRTB": [
                0
            ],
            "DXS10134": [
                0
            ],
            "DXS10135": [
                0
            ],
            "DXS8378": [
                0
            ],
            "DXS10074": [
                0
            ],
            "DXS10101": [
                0
            ]
        }
    },
    "analyses": [
        {
            "id": "d13fa95e-707c-4dcc-9923-1f7ee779ebb4",
            "date": "ISODate('2024-07-02T19:27:42.761Z')",
            "kit": "ArgusX8",
            "genotypification": {
                "DXS7132": [
                    0
                ],
                "DXS7423": [
                    0
                ],
                "AMEL": [
                    "X",
                    "Y"
                ],
                "HPRTB": [
                    0
                ],
                "DXS10134": [
                    0
                ],
                "DXS10135": [
                    0
                ],
                "DXS8378": [
                    0
                ],
                "DXS10074": [
                    0
                ],
                "DXS10101": [
                    0
                ]
            },
            "type": 2
        },
        {
            "id": "be857266-ae21-47f0-a1cc-45ff5e468955",
            "date": "ISODate('2024-07-04T15:15:23.306Z')",
            "kit": "Manual",
            "genotypification": {
                "CSF1PO": [
                    6,
                    15
                ]
            },
            "type": 1
        }
    ],
    "labeledGenotypification": null,
    "contributors": 1,
    "matchingRules": null,
    "mismatches": null,
    "matcheable": false,
    "isReference": false,
    "processed": false
}

Does this kind of profile make sense?