tests/testthat/_snaps/read_janno.md

reading broken_full.janno works

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["source_file", "Poseidon_ID", "Genetic_Sex", "Group_Name", "Latitude", "Longitude", "Date_Type", "Date_C14_Labnr", "Date_C14_Uncal_BP", "Date_C14_Uncal_BP_Err", "Date_BC_AD_Start", "Date_BC_AD_Median", "Date_BC_AD_Stop", "Nr_Libraries", "Capture_Type", "UDG", "Library_Built", "Genotype_Ploidy", "Data_Preparation_Pipeline_URL", "Endogenous", "Nr_SNPs", "Coverage_on_Target_SNPs", "Damage"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["janno", "tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "character",
      "attributes": {},
      "value": ["testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno", "testJannoFiles/borked_full.janno"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, "XXX017", "XXX018", "XXX019", "XXX022", "XXX023", "XXX024", "XXX025", "XXX026", "XXX027", "XXX028", "XXX029", "XXX030", "XXX031", "XXX032", "XXX035", "XXX036", "XXX037", "XXX038", "XXX039", "XXX040", "XXX041", "XXX042", "XXX044"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", null, "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["POP1"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP5"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP6"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP7"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP10"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP11"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP12"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP13"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP14"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP15"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP16"]
        },
        {
          "type": "NULL"
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP18"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP19"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP20"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP23"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP24"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP25"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP26"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP27"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP28"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP29"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP30"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP32"]
        }
      ]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA", 1000, "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA", "NA", -1000, "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null, null, null, null, null, "something", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["A-1", "A-2", "A-3"]
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "integer",
          "attributes": {},
          "value": [1000, 2000]
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "integer",
          "attributes": {},
          "value": [10, 20]
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["something"]
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "something", null, null, null, null, null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "something", null, null, null, null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null, null, null, null, null, null, null, null, "something", null, null, null, null, null, null, null, null, null, null, null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "something"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    }
  ]
}

reading broken_partial.janno works

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["source_file", "Poseidon_ID", "Genetic_Sex", "Group_Name", "Latitude"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["janno", "tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "character",
      "attributes": {},
      "value": ["testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno", "testJannoFiles/borked_partial.janno"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["XXX016", "XXX017", "XXX018", "XXX019", "XXX022", "XXX023", "XXX024", "XXX025", "XXX026", "XXX027", "XXX028", "XXX029", "XXX030", "XXX031", "XXX032", "XXX035", "XXX036", "XXX037", "XXX038", "XXX039", "XXX040", "XXX041", "XXX042"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M", "M"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["POP1"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP5"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP6"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP7"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP10"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP11"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP12"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP13"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP14"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP15"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP16"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP17"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP18"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP19"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP20"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP23"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP24"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP25"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP26"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP27"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP28"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP29"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP30"]
        }
      ]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA", 1000, "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    }
  ]
}

reading minimal_full.janno works

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["source_file", "Poseidon_ID", "Genetic_Sex", "Group_Name", "Alternative_IDs", "Relation_To", "Relation_Degree", "Relation_Type", "Relation_Note", "Collection_ID", "Country", "Location", "Site", "Latitude", "Longitude", "Date_Type", "Date_C14_Labnr", "Date_C14_Uncal_BP", "Date_C14_Uncal_BP_Err", "Date_BC_AD_Start", "Date_BC_AD_Median", "Date_BC_AD_Stop", "Date_Note", "MT_Haplogroup", "Y_Haplogroup", "Source_Tissue", "Nr_Libraries", "Capture_Type", "UDG", "Library_Built", "Genotype_Ploidy", "Data_Preparation_Pipeline_URL", "Endogenous", "Nr_SNPs", "Coverage_on_Target_SNPs", "Damage", "Contamination", "Contamination_Err", "Contamination_Meas", "Contamination_Note", "Genetic_Source_Accession_IDs", "Primary_Contact", "Publication", "Note", "Keywords"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2, 3]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["janno", "tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "character",
      "attributes": {},
      "value": ["testJannoFiles/minimal_full.janno", "testJannoFiles/minimal_full.janno", "testJannoFiles/minimal_full.janno"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["XXX011", "XXX012", "XXX013"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["M", "F", "M"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["POP1"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP2"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP1"]
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA", "NA", "NA"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA", "NA", "NA"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": ["NA", "NA", "NA"]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": ["NA", "NA", "NA"]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": ["NA", "NA", "NA"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": ["NA", "NA", "NA"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA", "NA", "NA"]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": ["NA", "NA", "NA"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA", "NA", "NA"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA", "NA", "NA"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    }
  ]
}

reading minimal_partial.janno works

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["source_file", "Poseidon_ID", "Genetic_Sex", "Group_Name"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2, 3]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["janno", "tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "character",
      "attributes": {},
      "value": ["testJannoFiles/minimal_partial.janno", "testJannoFiles/minimal_partial.janno", "testJannoFiles/minimal_partial.janno"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["XXX011", "XXX012", "XXX013"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["M", "F", "M"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["POP1"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP2"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP1"]
        }
      ]
    }
  ]
}

reading minimal_partial_extra_columns.janno works

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["source_file", "Poseidon_ID", "Genetic_Sex", "Group_Name", "Testcolumn1", "Tesctolumn2"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2, 3]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["janno", "tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "character",
      "attributes": {},
      "value": ["testJannoFiles/minimal_partial_extra_columns.janno", "testJannoFiles/minimal_partial_extra_columns.janno", "testJannoFiles/minimal_partial_extra_columns.janno"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["XXX011", "XXX012", "XXX013"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["M", "F", "M"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["POP1"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP2"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP1"]
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["Ich", "mag", "Birnen"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, "Wurst;Bananen"]
    }
  ]
}

reading normal_full.janno works

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["source_file", "Poseidon_ID", "Genetic_Sex", "Group_Name", "Alternative_IDs", "Relation_To", "Relation_Degree", "Relation_Type", "Relation_Note", "Collection_ID", "Country", "Country_ISO", "Location", "Site", "Latitude", "Longitude", "Date_Type", "Date_C14_Labnr", "Date_C14_Uncal_BP", "Date_C14_Uncal_BP_Err", "Date_BC_AD_Start", "Date_BC_AD_Median", "Date_BC_AD_Stop", "Date_Note", "MT_Haplogroup", "Y_Haplogroup", "Source_Tissue", "Nr_Libraries", "Library_Names", "Capture_Type", "UDG", "Library_Built", "Genotype_Ploidy", "Data_Preparation_Pipeline_URL", "Endogenous", "Nr_SNPs", "Coverage_on_Target_SNPs", "Damage", "Contamination", "Contamination_Err", "Contamination_Meas", "Contamination_Note", "Genetic_Source_Accession_IDs", "Primary_Contact", "Publication", "Note", "Keywords", "AdditionalColumn1", "AdditionalColumn2"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2, 3]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["janno", "tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "character",
      "attributes": {},
      "value": ["testJannoFiles/normal_full.janno", "testJannoFiles/normal_full.janno", "testJannoFiles/normal_full.janno"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["XXX011", "XXX012", "XXX013"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["M", "F", "M"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["POP1", "POP3"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP2"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP1"]
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["Paul", "Peter"]
        },
        {
          "type": "NULL"
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["Skeleton Joe"]
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["XXX012", "I1234"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["XXX011"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["XXX011"]
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["first", "second"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["first"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["sixthToTenth"]
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["father_of", "grandfather_of"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["daughter_of"]
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["yyy", null, "xxx"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["xxx", "xxx", "xxx"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["DE", "FR", "EG"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["xxx", "xxx", "xxx"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["xxx", "xxx", "xxx"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0, -90, 90]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0, -180, 180]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["C14", "contextual", "modern"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["A-1", "A-2", "A-3"]
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "integer",
          "attributes": {},
          "value": [3000, 3100, 2900]
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "integer",
          "attributes": {},
          "value": [30, 40, 20]
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [-1200, -5500, 2000]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [-1000, -5000, 2000]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [-800, -4500, 2000]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["x x x", "yyy", null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["A", "B", "C"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["C", "B", "A"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["xxx", "yyy"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["xxx"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["xxx"]
        }
      ]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [2, 0, 0]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["Lib1", "Lib2"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["Lib3"]
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["Shotgun", "1240K"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["1240K"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["ReferenceGenome"]
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["minus", "half", "plus"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["ds", "ss", "mixed"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["diploid", "haploid", "diploid"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["ftp://test.test", "https://www.google.de", "http://huhu.org/23&test"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0, 0, 0]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [0, 0, 0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0, 0, 0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0, 100, 50]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["10"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["20", "50", "70"]
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["1"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["2", "5", "7.4"]
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["ANGSD v.123"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["Schmutzi v145", "Zwiebel", "other"]
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, "xxx", null]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["Ich", "mag", "Kekse"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["aus"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["der Dose"]
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["Ich", "Du", "Müllers Kuh"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["unpublished"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["PaulNature2026"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["BovineCell1618"]
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["This is a fine sample", "Cheesecake", null]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["Hutschnur"]
        },
        {
          "type": "NULL"
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["A", "B", "C"]
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["test1", "test3", "test5"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["test2", "test4", "test6"]
    }
  ]
}

reading normal_partial.janno works

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["source_file", "Poseidon_ID", "Genetic_Sex", "Group_Name", "Alternative_IDs", "Relation_To", "Relation_Degree", "Relation_Type", "Relation_Note", "Country", "Country_ISO", "Location", "Site", "Latitude", "Longitude", "Date_Type", "Date_C14_Labnr", "Date_C14_Uncal_BP", "Date_C14_Uncal_BP_Err", "Date_BC_AD_Start", "Date_BC_AD_Median", "Date_BC_AD_Stop", "Date_Note", "MT_Haplogroup", "Y_Haplogroup", "Source_Tissue", "Nr_Libraries", "Library_Names", "Capture_Type", "UDG", "Library_Built", "Genotype_Ploidy", "Data_Preparation_Pipeline_URL", "Endogenous", "Nr_SNPs", "Coverage_on_Target_SNPs", "Damage", "Contamination", "Contamination_Err", "Contamination_Meas", "Contamination_Note", "Genetic_Source_Accession_IDs", "Primary_Contact", "Publication", "Note", "Keywords", "AdditionalColumn2", "AdditionalColumn1"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2, 3]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["janno", "tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "character",
      "attributes": {},
      "value": ["testJannoFiles/normal_partial.janno", "testJannoFiles/normal_partial.janno", "testJannoFiles/normal_partial.janno"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["XXX011", "XXX012", "XXX013"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["M", "F", "M"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["POP1", "POP3"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP2"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["POP1"]
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["Paul", "Peter"]
        },
        {
          "type": "NULL"
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["Skeleton Joe"]
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["XXX012", "I1234"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["XXX011"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["XXX011"]
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["first", "second"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["first"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["sixthToTenth"]
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["father_of", "grandfather_of"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["daughter_of"]
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["yyy", null, "xxx"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["xxx", "xxx", "xxx"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["DE", "FR", "EG"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["xxx", "xxx", "xxx"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["xxx", "xxx", "xxx"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0, -90, 90]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0, -180, 180]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["C14", "contextual", "modern"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["A-1", "A-2", "A-3"]
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "integer",
          "attributes": {},
          "value": [3000, 3100, 2900]
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "integer",
          "attributes": {},
          "value": [30, 40, 20]
        },
        {
          "type": "NULL"
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [-1200, -5500, 2000]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [-1000, -5000, 2000]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [-800, -4500, 2000]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["x x x", "yyy", null]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["A", "B", "C"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["C", "B", "A"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["xxx", "yyy"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["xxx"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["xxx"]
        }
      ]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [2, 0, 0]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["Lib1", "Lib2"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["Lib3"]
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["Shotgun", "1240K"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["1240K"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["ReferenceGenome"]
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["minus", "half", "plus"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["ds", "ss", "mixed"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["diploid", "haploid", "diploid"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["ftp://test.test", "https://www.google.de", "http://huhu.org/23&test"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0, 0, 0]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [0, 0, 0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0, 0, 0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0, 100, 50]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["10"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["20", "50", "70"]
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["1"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["2", "5", "7.4"]
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["ANGSD v.123"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["Schmutzi v145", "Zwiebel", "other"]
        },
        {
          "type": "NULL"
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, "xxx", null]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["Ich", "mag", "Kekse"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["aus"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["der Dose"]
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["Ich", "Du", "Müllers Kuh"]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["unpublished"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["PaulNature2026"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["BovineCell1618"]
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["This is a fine sample", "Cheesecake", null]
    },
    {
      "type": "list",
      "attributes": {},
      "value": [
        {
          "type": "character",
          "attributes": {},
          "value": ["Hutschnur"]
        },
        {
          "type": "NULL"
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["A", "B", "C"]
        }
      ]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["test2", "test4", "test6"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["test1", "test3", "test5"]
    }
  ]
}


poseidon-framework/poseidonR documentation built on March 15, 2024, 12:18 a.m.