
org.snpeff.snpEffect.testCases.unity.TestCasesFasta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SnpEff Show documentation
Show all versions of SnpEff Show documentation
Variant annotation and effect prediction package.
The newest version!
package org.snpeff.snpEffect.testCases.unity;
import org.junit.Test;
import org.snpeff.fileIterator.FastaFileIterator;
import org.snpeff.util.Gpr;
/**
* Test case for FASTA file parsing
*
* @author pcingola
*/
public class TestCasesFasta extends TestCasesBase {
public TestCasesFasta() {
super();
}
/**
* Bug: Fasta file iterator should not crash if first line is empty
*/
@Test
public void test_01() {
Gpr.debug("Test");
String fastaFileName = path("emptyLine.fa");
FastaFileIterator ffi = new FastaFileIterator(fastaFileName);
for (String seq : ffi) {
if (verbose) System.out.println("SeqName: " + ffi.getName() + "\tSize: " + seq.length());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy