MappableContactMatrix<PAEContactMatrix> implements ContactMatrixI
{
-
@SuppressWarnings("unchecked")
public PAEContactMatrix(SequenceI _refSeq, Map<String, Object> pae_obj)
throws FileFormatException
*/
public PAEContactMatrix(SequenceI _refSeq, float[][] matrix)
{
- mappedMatrix=new FloatContactMatrix(matrix);
+ mappedMatrix = new FloatContactMatrix(matrix);
setRefSeq(_refSeq);
}
public PAEContactMatrix(SequenceI newRefSeq, MapList newFromMapList,
float[][] elements2, GroupSet grps2)
{
- this(newRefSeq, new FloatContactMatrix(elements2,grps2));
+ this(newRefSeq, new FloatContactMatrix(elements2, grps2));
toSeq = newFromMapList;
}
mappedMatrix = floatContactMatrix;
setRefSeq(_refSeq);
}
+
public PAEContactMatrix(SequenceI _refSeq, MapList newFromMapList,
ContactMatrixI floatContactMatrix)
{
setRefSeq(_refSeq);
toSeq = newFromMapList;
}
-
+
@Override
protected PAEContactMatrix newMappableContactMatrix(SequenceI newRefSeq,
MapList newFromMapList)
row++;
col = 0;
}
- mappedMatrix=new FloatContactMatrix(elements);
+ mappedMatrix = new FloatContactMatrix(elements);
}
/**
Iterator<Long> rows = ((List<Long>) pae_obj.get("residue1")).iterator();
Iterator<Long> cols = ((List<Long>) pae_obj.get("residue2")).iterator();
// two pass - to allocate the elements array
-
- int maxrow=-1,maxcol=-1;
+
+ int maxrow = -1, maxcol = -1;
while (rows.hasNext())
{
int row = rows.next().intValue();
{
maxcol = col;
}
- elements[col - 1][row-1] = escore;
+ elements[col - 1][row - 1] = escore;
}
- mappedMatrix=new FloatContactMatrix(elements);
+ mappedMatrix = new FloatContactMatrix(elements);
}
@Override
return PAEMATRIX;
}
-
public static void validateContactMatrixFile(String fileName)
throws FileFormatException, IOException
{
"No data in PAE matrix read from '" + fileName + "'");
}
}
+
@Override
public boolean equals(Object obj)
{
return super.equals(obj);
}
+
@Override
public int hashCode()
{