public VariantStudyMetadata getVariantStudyMetadata ( String studyId ) { if ( studyId != null ) { if ( variantMetadata . getStudies ( ) == null ) { variantMetadata . setStudies ( new ArrayList <> ( ) ) ; } for ( VariantStudyMetadata study : variantMetadata . getStudies ( ) ) { if ( studyId . equals ( study . getId ( ) ) ) { return study ; } } } else { logger . error ( "Study ID is null" ) ; } return null ; }
Retrieve the variant study metadata from its study ID .