Uploaded image for project: 'PhenoTips'
  1. PT-3821

SimpleJSON representation of pedigrees is incompatible between PhenoTips 1.3 and 1.4 when cancers are included

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.4-rc-3
    • Fix Version/s: 1.4.1, 1.5-milestone-1
    • Component/s: Pedigree
    • Labels:
      None

      Description

      Steps to reproduce:

      • In PhenoTips ver 1.4 create a pedigree, and add some cancers to a node
      • export pedigree into SimpleJSON format
      • Open a PhenoTips 1.3 instance and try to import the file; the import process fails; the progress bar never goes away

      (the opposite also fails: create a pedigree in 1.3 and try to import it into 1.4)

      Here is a sample SimpleJSON generated by 1.4 that can not be imported by 1.3.x. versions:

      [{"id":"1","proband":true,"sex":"unknown","cancers":[{"id":"HP:0100013","label":"Breast","affected":true,"qualifiers":[{"ageAtDiagnosis":"8","laterality":"","primary":true,"notes":"breast notes","numericAgeAtDiagnosis":8}]},{"id":"HP:0030079","label":"Cervix","affected":true,"qualifiers":[{"ageAtDiagnosis":"before_10","laterality":"","primary":true,"notes":"cervix notes","numericAgeAtDiagnosis":1}]}],"features":[],"nonstandard_features":[],"genes":[]}]
      

      The same data in 1.3 SImpleJSON that can't be imported into 1.4:

      [{"id":"1","proband":true,"sex":"male","cancers":{"Breast":{"affected":true,"ageAtDiagnosis":"8","numericAgeAtDiagnosis":8,"notes":"breast notes"},"Cervix":{"affected":true,"ageAtDiagnosis":"before_10","numericAgeAtDiagnosis":5,"notes":"cervix notes"}},"features":[],"nonstandard_features":[],"genes":[]}]
      

        Attachments

          Activity

            People

            • Assignee:
              asm Andriy Misyura
              Reporter:
              sasha Sasha Andjic
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: