de.charite.compbio.jannovar.datasource.EnsemblDataSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jannovar-core Show documentation
Show all versions of jannovar-core Show documentation
jannovar-core is a library for the functional annotation of genomic variants
package de.charite.compbio.jannovar.datasource;
import org.ini4j.Profile.Section;
import com.google.common.collect.ImmutableList;
/**
* {@link DataSource} implementation for data from Ensembl.
*
* @author Manuel Holtgrewe
*/
final class EnsemblDataSource extends DataSource {
/** expected keys in data source configuration file */
private final ImmutableList urlKeys = ImmutableList.of("cdna", "gtf", "chromInfo", "chrToAccessions");
EnsemblDataSource(DatasourceOptions options, Section iniSection)
throws InvalidDataSourceException {
super(options, iniSection);
checkURLs();
}
@Override
public JannovarDataFactory getDataFactory() {
return new EnsemblJannovarDataFactory(options, this, iniSection, options.doPrintProgressBars());
}
@Override
protected ImmutableList getURLKeys() {
return urlKeys;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy