code: public void load(Path path) throws IOException {
          FileUtils.checkPath(path);
          logger.debug("Loading variant metadata from '{}'", path.toAbsolutePath().toString());
          variantMetadata = mapper.readValue(path.toFile(), VariantMetadata.class);
  
          // We need to add Individual info fields to their sample annotations to allow more complex queries
          for (VariantStudyMetadata variantStudyMetadata: variantMetadata.getStudies()) {
              if (variantStudyMetadata.getIndividuals() != null) {
                  for (org.opencb.biodata.models.metadata.Individual individual : variantStudyMetadata.getIndividuals()) {
                      for (Sample sample : individual.getSamples()) {
                          sample.getAnnotations().put(INDIVIDUAL_ID, individual.getId());
                          sample.getAnnotations().put(INDIVIDUAL_FAMILY, individual.getFamily());
                          sample.getAnnotations().put(INDIVIDUAL_FATHER, individual.getFather());
                          sample.getAnnotations().put(INDIVIDUAL_MOTHER, individual.getMother());
                          sample.getAnnotations().put(INDIVIDUAL_SEX, individual.getSex());
                          sample.getAnnotations().put(INDIVIDUAL_PHENOTYPE, individual.getPhenotype());
                      }
                  }
              }
          }
      }
docs: Load variant metadata file.
  
  @param path          Path to the variant metadata file
  @throws IOException  IOException