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

org.snpeff.binseq.comparator.SequenceReference Maven / Gradle / Ivy

The newest version!
package org.snpeff.binseq.comparator;

/**
 * A reference to a sequence. It's composed by a sequence index and a start position (both are integres stored in a long)
 * 
 * @author pcingola
 */
public class SequenceReference {

	public static long getReference(int sequenceIdx, int start) {
		return (((long) sequenceIdx) << 32) | start;
	}

	public static int getSeqIdx(long ref) {
		return (int) (ref >>> 32);
	}

	public static int getStart(long ref) {
		return (int) (ref & 0xffffffff);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy