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 ) ; } } }
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 .