All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.charite.compbio.jannovar.datasource.UCSCDataSource Maven / Gradle / Ivy

There is a newer version: 0.41
Show newest version
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