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

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

package de.charite.compbio.jannovar.datasource;

import org.ini4j.Profile.Section;

import com.google.common.collect.ImmutableList;

/**
 * {@link DataSource} implementation for data from RefSeq.
 *
 * @author Manuel Holtgrewe
 */
final class RefSeqDataSource extends DataSource {

	/** expected keys in data source configuration file */
	private final ImmutableList urlKeys = ImmutableList.of("gff", "rna", "chromInfo", "chrToAccessions");

	RefSeqDataSource(DatasourceOptions options, Section iniSection) throws InvalidDataSourceException {
		super(options, iniSection);

		checkURLs();
	}

	@Override
	public JannovarDataFactory getDataFactory() {
		return new RefSeqJannovarDataFactory(options, this, iniSection);
	}

	@Override
	protected ImmutableList getURLKeys() {
		return urlKeys;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy