private final static String PATH_SEPARATOR = File.separator;
+ private String fastaMappingFile;
+
public Phyre2Client(StructureFile structureFile)
{
this.structureFile = structureFile;
}
+ public StructureMapping getStructureMapping(SequenceI seq,
+ String pdbFile, String fMappingFile, String chain)
+ {
+ this.fastaMappingFile = fMappingFile;
+ return getStructureMapping(seq, pdbFile, chain);
+ }
+
@Override
public StructureMapping getStructureMapping(SequenceI seq,
String pdbFile, String chain)
private String getFastaMappingFile()
{
- File phyre2ModelFile = new File(structureFile.getDataName());
- String phyre2ModelResultDir = phyre2ModelFile.getParent();
- String modelId = structureFile.getId().substring(0,
- structureFile.getId().lastIndexOf(".pdb"));
- return phyre2ModelResultDir + PATH_SEPARATOR + modelId + ".fasta";
+ return fastaMappingFile;
}
@Override
output.append(NEWLINE).append(NEWLINE);
}
float pid = (float) matchedSeqCount / seqRes.length() * 100;
- // if (pid < SiftsSettings.getFailSafePIDThreshold())
- // {
- // throw new Exception(">>> Low PID detected for Phyre2 mapping...");
- // }
output.append("Length of alignment = " + seqRes.length()).append(
NEWLINE);
output.append(new Format("Percentage ID = %2.2f").form(pid));