de.charite.compbio.jannovar.datasource.UCSCDataSource 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 UCSC.
*
* @author Manuel Holtgrewe
*/
final class UCSCDataSource extends DataSource {
/** expected keys in data source configuration file */
private final ImmutableList urlKeys = ImmutableList.of("knownCanonical", "knownGene", "knownGeneMrna",
"kgXref", "knownToLocusLink", "chromInfo", "chrToAccessions");
UCSCDataSource(DatasourceOptions options, Section iniSection) throws InvalidDataSourceException {
super(options, iniSection);
checkURLs();
}
@Override
public JannovarDataFactory getDataFactory() {
return new UCSCJannovarDataFactory(options, this, iniSection);
}
@Override
protected ImmutableList getURLKeys() {
return urlKeys;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy