Skip to content

Commit

Permalink
Added tests of LINE_LENGTH and TRUNCATE_SEQ...
Browse files Browse the repository at this point in the history
  • Loading branch information
dekling committed Sep 4, 2015
1 parent 014624e commit 7a26db2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.broadinstitute.hellbender.tools.picard.fastq;

import org.broadinstitute.hellbender.CommandLineProgramTest;

import org.broadinstitute.hellbender.tools.IntegrationTestSpec;
import org.broadinstitute.hellbender.utils.test.BaseTest;
import org.testng.annotations.Test;
Expand All @@ -16,20 +15,24 @@
public final class NormalizeFastaIntegrationTest extends CommandLineProgramTest {

private static final File TEST_DATA_PATH = new File(getTestDataDir(), "picard/fasta/" );

public String getTestedClassName() {

return NormalizeFasta.class.getSimpleName();
}

@Test
public void testNormalize () throws IOException {

final File input = new File(TEST_DATA_PATH, "truncatedFASTA.fasta");
final File expectedFile = new File(TEST_DATA_PATH, "truncatedFASTA2.fasta");
final File input = new File(TEST_DATA_PATH, "truncatedFASTA_WS.fasta");
final File expectedFile = new File(TEST_DATA_PATH, "truncatedFASTA_WS_2.fasta");
final File outfile = BaseTest.createTempFile("normalized", ".fasta");

final String[] args = {
"--INPUT", input.getAbsolutePath(),
"--OUTPUT", outfile.getAbsolutePath(),
"--TRUNCATE_SEQUENCE_NAMES_AT_WHITESPACE", "TRUE",


};

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
>chr1
taaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaac
cctaacccaaccctaaccctaaccctaaccctaaccctaaccctaacccctaaccctaaccctaaccctaaccctaacctaaccctaaccctaaccctaa
ccctaaccctaaccctaaccctaaccctaacccctaaccctaaccctaaaccctaaaccctaaccctaaccctaaccctaaccctaaccccaaccccaac
CCGTCAGCCTTTTCTTTGACCTCTTCTTTCTGTTCATGTGTATTTGCTGTCTCTTAGCCCAGACTTCCCGTGTCCTTTCCACCGGGCCTTTGAGAGGTCA
CAGGGTCTTGATGCTGTGGTCTTCATCTGCAGGTGTCTGACTTCCAGCAACTGCTGGCCTGTGCCAGGGTGCAAGCTGAGCACTGGAGTGGAGTTTTCCT
GTGGAGAGGAGCCATGCCTAGAGTGGGATGGGCCATTGTTCATCTTCTGGCCCCTGTTGTCTGCATGTAACTTAATACCACAACCAGGCATAGGGGAAAG
ATTGGAGGAAAGATGAGTGAGAGCATCAACTTCTCTCACAACCTAGGCCAGTAAGTAGTG
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
>chromosome
taaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaac
cctaacccaaccctaaccctaaccctaaccctaaccctaaccctaacccctaaccctaaccctaaccctaaccctaacctaaccctaaccctaaccctaa
ccctaaccctaaccctaaccctaaccctaacccctaaccctaaccctaaaccctaaaccctaaccctaaccctaaccctaaccctaaccccaaccccaac
CCGTCAGCCTTTTCTTTGACCTCTTCTTTCTGTTCATGTGTATTTGCTGTCTCTTAGCCCAGACTTCCCGTGTCCTTTCCACCGGGCCTTTGAGAGGTCA
CAGGGTCTTGATGCTGTGGTCTTCATCTGCAGGTGTCTGACTTCCAGCAACTGCTGGCCTGTGCCAGGGTGCAAGCTGAGCACTGGAGTGGAGTTTTCCT
GTGGAGAGGAGCCATGCCTAGAGTGGGATGGGCCATTGTTCATCTTCTGGCCCCTGTTGTCTGCATGTAACTTAATACCACAACCAGGCATAGGGGAAAG
ATTGGAGGAAAGATGAGTGAGAGCATCAACTTCTCTCACAACCTAGGCCAGTAAGTAGTG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
>chr1
>chromosome 1
taaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccctaaccc
taaccctaaccctaaccctaaccctaaccctaaccctaaccctaacccaaccctaaccct
aaccctaaccctaaccctaaccctaacccctaaccctaaccctaaccctaaccctaacct
Expand Down

0 comments on commit 7a26db2

Please sign in to comment.