Skip to content

Commit

Permalink
fix: remove unnecessary test of pik3ca
Browse files Browse the repository at this point in the history
  • Loading branch information
sanashah007 committed Aug 9, 2024
1 parent e7ea45f commit df07f5b
Showing 1 changed file with 0 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import java.io.*;

public class GtfToBedIntegrationTest extends CommandLineProgramTest {
private static final File TEST_SUB_DIR = new File(toolsTestDir);
private static final File input = new File(TEST_SUB_DIR, "/funcotator/small_pik3ca_dbsnp_ds/gencode_pik3ca/hg19/gencode.v19.PIK3CA.gtf");
final File outputFile = createTempFile("outputBed", ".bed");

private static final File mapk1 = new File(ConversionTestUtils.getMapk1Gtf());
Expand All @@ -28,20 +26,6 @@ public class GtfToBedIntegrationTest extends CommandLineProgramTest {
private static final File notBasicBed = new File(ConversionTestUtils.getNotBasicBed());
private static final File mouseBed = new File(ConversionTestUtils.getMouseBed());



// tests any Gtf file (gene)
@Test
public void testGene() throws IOException {
runGtfToBed(false);
}

// tests any Gtf file (transcript)
@Test
public void testTranscript() throws IOException {
runGtfToBed(true);
}

// tests specifically mapk1 gene
@Test
public void testMapk1Gene() throws IOException {
Expand Down Expand Up @@ -82,23 +66,6 @@ public void testMouse() throws IOException {
runMouse();
}


private void runGtfToBed(boolean transcript) throws IOException {
final ArgumentsBuilder argsBuilder = new ArgumentsBuilder()
.add(GtfToBed.INPUT_LONG_NAME, input)
.add(GtfToBed.SEQUENCE_DICTIONARY_LONG_NAME, dictionary)
.add(GtfToBed.SORT_BY_TRANSCRIPT_LONG_NAME, transcript)
.add(GtfToBed.SORT_BY_BASIC_LONG_NAME, true)
.addOutput(outputFile);
runCommandLine(argsBuilder);

if (transcript) {
Assert.assertEquals(countLines(outputFile), 1);
} else {
Assert.assertEquals(countLines(outputFile), 1);
}
}

private void runMapk1(boolean transcript) throws IOException {
final ArgumentsBuilder argsBuilder = new ArgumentsBuilder()
.add(GtfToBed.INPUT_LONG_NAME, mapk1)
Expand Down

0 comments on commit df07f5b

Please sign in to comment.