import jalview.api.FeatureSettingsModelI;
import jalview.bin.Console;
-import jalview.datamodel.AlignedCodonFrame;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.ContactMatrixI;
import jalview.io.FileFormatI;
import jalview.io.FormatAdapter;
import jalview.io.PDBFeatureSettings;
+import jalview.structure.StructureImportSettings.TFType;
import jalview.structure.StructureMapping;
import jalview.structure.StructureSelectionManager;
import jalview.util.MessageManager;
{
return null;
}
+ // TODO Get the PAE file somewhere around here and remove from JmolParser
pdbAlignment = importDownloadedStructureFromUrl(alphaFoldCif, tmpFile,
id, chain, getDbSource(), getDbVersion());
* @throws Exception
*/
public static boolean importPaeJSONAsContactMatrixToSequence(
- AlignmentI pdbAlignment, InputStream pae_input)
- throws IOException, ParseException
- {
- return importPaeJSONAsContactMatrixToSequence(pdbAlignment, pae_input,
- 0, null);
- }
-
- public static boolean importPaeJSONAsContactMatrixToSequence(
- AlignmentI pdbAlignment, File paeFile, int index, String seqId)
- throws FileNotFoundException, IOException, ParseException
- {
- return importPaeJSONAsContactMatrixToSequence(pdbAlignment,
- new FileInputStream(paeFile), index, seqId);
- }
-
- public static boolean importPaeJSONAsContactMatrixToSequence(
AlignmentI pdbAlignment, InputStream pae_input, int index,
String seqId) throws IOException, ParseException
{
}
public static boolean importPaeJSONAsContactMatrixToSequence(
- AlignmentI pdbAlignment, File pae_input, SequenceI sequence)
- throws IOException, ParseException
- {
- return importPaeJSONAsContactMatrixToSequence(pdbAlignment,
- new FileInputStream(pae_input), sequence);
- }
-
- public static boolean importPaeJSONAsContactMatrixToSequence(
AlignmentI pdbAlignment, InputStream pae_input,
SequenceI sequence) throws IOException, ParseException
{
}
ContactMatrixI matrix = new PAEContactMatrix(sequence,
(Map<String, Object>) paeDict);
+ ((PAEContactMatrix) matrix).makeGroups(5f, true);
AlignmentAnnotation cmannot = sequence.addContactList(matrix);
pdbAlignment.addAnnotation(cmannot);
ContactMatrixI matrix = new PAEContactMatrix(sm.getSequence(),
(Map<String, Object>) pae_obj);
-
+ ((PAEContactMatrix) matrix).makeGroups(5f, true);
AlignmentAnnotation cmannot = sm.getSequence().addContactList(matrix);
- // sm.getSequence().addAlignmentAnnotation(cmannot);
- sm.transfer(cmannot);
- // return true;
-
- StructureSelectionManager ssm = StructureSelectionManager
- .getStructureSelectionManager(Desktop.instance);
- List<AlignedCodonFrame> acfList = ssm.getSequenceMappings();
+ sm.getSequence().addAlignmentAnnotation(cmannot);
return true;
}
String file = tmpFile.getAbsolutePath();
// todo get rid of Type and use FileFormatI instead?
FileFormatI fileFormat = FileFormat.MMCif;
- AlignmentI pdbAlignment = new FormatAdapter().readFile(tmpFile,
- DataSourceType.FILE, fileFormat);
+ TFType tempfacType = TFType.PLDDT;
+ AlignmentI pdbAlignment = new FormatAdapter().readFile(tmpFile, file,
+ DataSourceType.FILE, fileFormat, tempfacType);
+
if (pdbAlignment != null)
{
List<SequenceI> toremove = new ArrayList<SequenceI>();
if (pid.getFile() == file)
{
chid = pid.getChainCode();
-
}
}
if (chain == null || (chid != null && (chid.equals(chain)