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

org.snpeff.snpEffect.testCases.integration.TestCasesIntegrationGenBank Maven / Gradle / Ivy

The newest version!
package org.snpeff.snpEffect.testCases.integration;

import org.junit.Test;
import org.snpeff.SnpEff;
import org.snpeff.snpEffect.commandLine.SnpEffCmdBuild;
import org.snpeff.snpEffect.commandLine.SnpEffCmdProtein;
import org.snpeff.util.Gpr;

import junit.framework.Assert;

/**
 * Test case for EMBL file parsing (database creation)
 *
 * @author pcingola
 */
public class TestCasesIntegrationGenBank extends TestCasesIntegrationBase {

	int exonToStringVersionOri;

	public TestCasesIntegrationGenBank() {
		super();
	}

	@Test
	public void testCase_multiple_CDS() {
		Gpr.debug("Test");

		// Build genome
		String genome = "test_NC_031965.1";
		String args[] = { "build", genome };
		SnpEff snpeff = new SnpEff(args);
		snpeff.setVerbose(verbose);
		snpeff.setDebug(debug);
		SnpEffCmdBuild snpeffBuild = (SnpEffCmdBuild) snpeff.cmd();
		snpeffBuild.run();

		// Check
		SnpEffCmdProtein sprot = snpeffBuild.getSnpEffCmdProtein();
		Assert.assertEquals("Wrong number of matching proteins", 3, sprot.getTotalOk());
		Assert.assertEquals("Errors while checking sequenced", 0, sprot.getTotalErrors());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy