exonerateOutput = "examples/testdata/exonerateoutput.gff",
simpleGff3file = "examples/testdata/simpleGff3.gff";
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void testExonerateImport()
{
// exonerate does not tag sequences after features, so we have a more
AlignFrame af = loader.LoadFileWaitTillLoaded(exonerateSeqs,
FormatAdapter.FILE);
- assertEquals("Unexpected number of DNA protein associations", 0,
- af.getViewport().getAlignment().getCodonFrames().size());
+ assertEquals("Unexpected number of DNA protein associations", 0, af
+ .getViewport().getAlignment().getCodonFrames().size());
af.loadJalviewDataFile(exonerateOutput, FormatAdapter.FILE, null, null);
}
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void simpleGff3FileIdentify()
{
- assertEquals("Didn't recognise file correctly.",
- IdentifyFile.GFF3File,
+ assertEquals("Didn't recognise file correctly.", IdentifyFile.GFF3File,
new IdentifyFile().Identify(simpleGff3file, FormatAdapter.FILE));
}
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void simpleGff3FileClass() throws IOException
{
- AlignmentI dataset = new Alignment(new SequenceI[]
- {});
+ AlignmentI dataset = new Alignment(new SequenceI[] {});
FeaturesFile ffile = new FeaturesFile(simpleGff3file,
FormatAdapter.FILE);
checkDatasetfromSimpleGff3(dataset);
}
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void simpleGff3FileLoader() throws IOException
{
AlignFrame af = new FileLoader(false).LoadFileWaitTillLoaded(
checkDatasetfromSimpleGff3(af.getViewport().getAlignment().getDataset());
}
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void simpleGff3RelaxedIdMatching() throws IOException
{
- AlignmentI dataset = new Alignment(new SequenceI[]
- {});
+ AlignmentI dataset = new Alignment(new SequenceI[] {});
FeaturesFile ffile = new FeaturesFile(simpleGff3file,
FormatAdapter.FILE);
checkDatasetfromSimpleGff3(dataset);
}
- @Test(groups ={ "Functional" })
+ @Test(groups = { "Functional" })
public void readGff3File() throws IOException
{
Gff3File gff3reader = new Gff3File(simpleGff3file, FormatAdapter.FILE);
placeholderseq.equals(seq1.getSequenceAsString()));
assertFalse("dummy replacement buggy for seq2",
placeholderseq.equals(seq2.getSequenceAsString()));
- assertNotNull("No features added to seq1",
- seq1.getSequenceFeatures());// != null);
+ assertNotNull("No features added to seq1", seq1.getSequenceFeatures());// !=
+ // null);
assertEquals("Wrong number of features", 3,
seq1.getSequenceFeatures().length);
assertNull(seq2.getSequenceFeatures());
assertEquals(
"Wrong number of features",
0,
- seq2
- .getSequenceFeatures() == null ? 0
- : seq2.getSequenceFeatures().length);
+ seq2.getSequenceFeatures() == null ? 0 : seq2
+ .getSequenceFeatures().length);
assertTrue(
"Expected at least one CDNA/Protein mapping for seq1",
dataset.getCodonFrame(seq1) != null