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

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

package de.charite.compbio.jannovar.datasource;

import org.ini4j.Profile.Section;

import com.google.common.collect.ImmutableList;

/**
 * A {@link DataSource} that reads regions from a BED file.
 * 
 * It then generates one transcript with one exon for each entry in the BED file.
 * 
 * @author Manuel Holtgrewe
 */
public class FlatBEDDataSource extends DataSource {

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

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

		checkURLs();
	}

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy