code: public static void calculateStatsForVariantsList(List<Variant> variants, Pedigree ped) {
          for (Variant variant : variants) {
              for (StudyEntry entry : variant.getStudies()) {
                  VariantStats stats = calculate(variant, entry);
                  entry.setStats(StudyEntry.DEFAULT_COHORT, stats);
              }
          }
      }
docs: Calculates the statistics for some variants read from a set of files, and
  optionally given pedigree information. Some statistics like inheritance
  patterns can only be calculated if pedigree information is provided.
  
  @param variants The variants whose statistics will be calculated
  @param ped Optional pedigree information to calculate some statistics