net.maizegenetics.dna.snp.io.LineIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tassel Show documentation
Show all versions of tassel Show documentation
TASSEL is a software package to evaluate traits associations, evolutionary patterns, and linkage
disequilibrium.
/*
* LineIndex
*
* Created on Aug 29, 2015
*/
package net.maizegenetics.dna.snp.io;
/**
*
* @author Terry Casstevens
*/
public class LineIndex {
public static final int NUM_LINES_PER_INTERVAL = 10;
private final int myMagic;
private final char myCommentChar;
private final int myNumHeaderLinesToSkip;
private final int myNumLinesPerInterval;
private final long[] myVirtualFileOffsets;
public LineIndex(int magic, char commentChar, int numHeaderLinesToSkip, int numLinesPerInterval, long[] virtualFileOffsets) {
myMagic = magic;
myCommentChar = commentChar;
myNumHeaderLinesToSkip = numHeaderLinesToSkip;
myNumLinesPerInterval = numLinesPerInterval;
myVirtualFileOffsets = virtualFileOffsets;
}
public int magicNumber() {
return myMagic;
}
public char commentChar() {
return myCommentChar;
}
public int numHeaderLinesToSkip() {
return myNumHeaderLinesToSkip;
}
public int numLinesPerInterval() {
return myNumLinesPerInterval;
}
public int numVirtualOffsets() {
return myVirtualFileOffsets.length;
}
public long virtualOffset(int index) {
return myVirtualFileOffsets[index];
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy