GENOME_CACHE_DIRECTORY = new File(getIgvDirectory(), "genomes");
if (!GENOME_CACHE_DIRECTORY.exists()) {
GENOME_CACHE_DIRECTORY.mkdir();
}
if (!GENOME_CACHE_DIRECTORY.canRead()) {
throw new DataLoadException("Cannot read from user directory", GENOME_CACHE_DIRECTORY.getAbsolutePath());
} else if (!GENOME_CACHE_DIRECTORY.canWrite()) {
throw new DataLoadException("Cannot write to user directory", GENOME_CACHE_DIRECTORY.getAbsolutePath());
}
}
return GENOME_CACHE_DIRECTORY;
}