question: public static GenomeRelationships load ( BufferedReader reader ) throws IOException { final GenomeRelationships ped = new GenomeRelationships ( ) ; String line ; while ( ( line = reader . readLine ( ) ) != null ) { line = line . trim ( ) ; if ( line . startsWith ( "#" ) || line . matches ( "^\\s*$" ) ) { continue ; } if ( line . matches ( "^genome\\s+[-a-zA-Z0-9_]+(\\s+[-a-zA-Z0-9_]+?=[^\\s]*)*$" ) ) { parseGenomeLine ( ped , line ) ; continue ; } if ( line . matches ( "^[a-z]+-[a-z]+\\s+[-a-zA-Z0-9_]+\\s+[-a-zA-Z0-9_]+(\\s+[-a-zA-Z0-9_]+?=[^\\s]*)*$" ) ) { parseRelationshipLine ( ped , line ) ; continue ; } throw new NoTalkbackSlimException ( "unrecognized line in relationships: '" + line + "'" ) ; } return ped ; }
target:  Load a genome relationships file