public void printSummary ( ) { StringBuilder res = new StringBuilder ( ) ; res . append ( "Num. studies: " ) . append ( variantMetadata . getStudies ( ) . size ( ) ) . append ( "\n" ) ; int counter , studyCounter = 0 ; for ( VariantStudyMetadata study : variantMetadata . getStudies ( ) ) { studyCounter ++ ; res . append ( "\tStudy #" ) . append ( studyCounter ) . append ( ": " ) . append ( study . getId ( ) ) . append ( "\n" ) ; res . append ( "\tNum. files: " ) . append ( study . getFiles ( ) . size ( ) ) . append ( "\n" ) ; counter = 0 ; for ( VariantFileMetadata file : study . getFiles ( ) ) { counter ++ ; res . append ( "\t\tFile #" ) . append ( counter ) . append ( ": " ) . append ( file . getId ( ) ) ; res . append ( " (" ) . append ( file . getSampleIds ( ) . size ( ) ) . append ( " samples)\n" ) ; } res . append ( "\tNum. cohorts: " ) . append ( study . getCohorts ( ) . size ( ) ) . append ( "\n" ) ; counter = 0 ; for ( Cohort cohort : study . getCohorts ( ) ) { counter ++ ; res . append ( "\t\tCohort #" ) . append ( counter ) . append ( ": " ) . append ( cohort . getId ( ) ) ; res . append ( " (" ) . append ( cohort . getSampleIds ( ) . size ( ) ) . append ( " samples)\n" ) ; } } System . out . println ( res . toString ( ) ) ; }
Print to the standard output a summary of the variant metadata manager .