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

org.snpeff.overlap.Overlap Maven / Gradle / Ivy

The newest version!
package org.snpeff.overlap;

import org.snpeff.binseq.BinarySequence;

/**
 * Calculates the best overlap between two sequences
 * 
 * Note: An overlap is a simple 'alignment' which can only contain gaps at the 
 *       beginning or at the end of the sequences.
 *       
 * @author pcingola
 */
public abstract class Overlap {

	int bestOffset, bestScore;

	public int getBestOffset() {
		return bestOffset;
	}

	public int getBestScore() {
		return bestScore;
	}

	/**
	 * Calculate the best overlap between two sequences
	 * 
	 * 
	 * @param seq1
	 * @param seq1
	 * @return
	 */
	public abstract int overlap(S seq1, S seq2);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy