src/main/java/org/ncgr/gwas/PhenoSubjects.java
void loadExcludedSamples(String filename) throws FileNotFoundException, IOException {
	BufferedReader labelsReader = new BufferedReader(new FileReader(filename));
	String line = null;
	while ((line=labelsReader.readLine())!=null) {
	    if (line.startsWith("#") || line.startsWith("sample") || line.trim().length()==0) {
		continue;
	    }
	    String[] fields = line.split("\t");
	    String sampleId = fields[0];
	    excludedSamples.add(sampleId);
	}
	labelsReader.close();
    }
/**
     * Populate the list of samples to exclude.
     */
Populate the list of samples to exclude.
Populate the list of samples to exclude .
void loadExcludedSamples(String filename) throws FileNotFoundException, IOException {
	BufferedReader labelsReader = new BufferedReader(new FileReader(filename));
	String line = null;
	while ((line=labelsReader.readLine())!=null) {
	    if (line.startsWith("#") || line.startsWith("sample") || line.trim().length()==0) {
		continue;
	    }
	    String[] fields = line.split("\t");
	    String sampleId = fields[0];
	    excludedSamples.add(sampleId);
	}
	labelsReader.close();
    }
void loadExcludedSamples ( String filename ) throws FileNotFoundException , IOException { BufferedReader labelsReader = new BufferedReader ( new FileReader ( filename ) ) ; String line = null ; while ( ( line = labelsReader . readLine ( ) ) != null ) { if ( line . startsWith ( "#" ) || line . startsWith ( "sample" ) || line . trim ( ) . length ( ) == 0 ) { continue ; } String [ ] fields = line . split ( "\t" ) ; String sampleId = fields [ 0 ] ; excludedSamples . add ( sampleId ) ; } labelsReader . close ( ) ; }
Populate the list of samples to exclude.
Populate the list of samples to exclude .