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

org.snpeff.snpEffect.factory.SnpEffPredictorFactoryGtf22 Maven / Gradle / Ivy

The newest version!
package org.snpeff.snpEffect.factory;

import org.snpeff.interval.Gtf2Marker;
import org.snpeff.snpEffect.Config;

/**
 * This class creates a SnpEffectPredictor from a GTF 2.2 file
 *
 * References: http://mblab.wustl.edu/GTF22.html
 *
 * @author pcingola
 */
public class SnpEffPredictorFactoryGtf22 extends SnpEffPredictorFactoryGff {

	public SnpEffPredictorFactoryGtf22(Config config) {
		super(config);
		version = "GTF22";
		fileName = config.getBaseFileNameGenes() + ".gtf";
	}

	@Override
	protected boolean parse(String line) {
		Gtf2Marker gffMarker = new Gtf2Marker(genome, line);
		return addInterval(gffMarker);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy