@Test(groups = { "Functional" })
public void getPhyre2FastaMappingTest()
{
- String phyre2ModelFile = "examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.pdb";
+ String phyre2ModelFile = "examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.1.pdb";
+ String fastaMappingFile = "examples/testdata/phyre2results/56da5616b4559c93/c4n58A_.1.fasta";
SequenceI testSeq = new Sequence(
"FER_CAPAN",
{
structureFile = new JmolParser(phyre2ModelFile, DataSourceType.FILE);
phyre2Client = new Phyre2Client(structureFile);
+ phyre2Client.setFastaMappingFile(fastaMappingFile);
} catch (IOException e1)
{
e1.printStackTrace();
public void getPhyre2FastaMappingTest2()
{
String phyre2ModelFile = "examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.pdb";
+ String fastaMappingFile = "examples/testdata/phyre2results/56da5616b4559c93/d1a70a_.fasta";
SequenceI testSeq = new Sequence(
"FER_CAPAN",
{
structureFile = new JmolParser(phyre2ModelFile, DataSourceType.FILE);
phyre2Client = new Phyre2Client(structureFile);
+ phyre2Client.setFastaMappingFile(fastaMappingFile);
} catch (IOException e1)
{
e1.printStackTrace();
// Test entry set
for (int key : expectedMapping.keySet())
{
+ System.out.println(key + " ---> [" + expectedMapping.get(key)[0]
+ + ", " + expectedMapping.get(key)[1] + "] = ["
+ + actualMapping.get(key)[0] + ", "
+ + actualMapping.get(key)[1] + "]");
Assert.assertTrue(Arrays.equals(expectedMapping.get(key),
actualMapping.get(key)));
}