Nearest neighbor data. The same class represents nearest neighbor and k-nearest neighbor data. Also the same class represents inter-set and self overlap neighborhood data.
Note that the number of stored neighbors might vary.
| name | data type | description |
|---|---|---|
| dissimilarities | array of number | Dissimilarities, This field contains a list of double arrays with dissimilarities for each query. |
| targets | array of number | Matching target indices. |
| queries | array of number | Query indices. |
Properties inherited from KnnInfo |
||
| querycount | number | Number of queries. |
| k | number | Number of nearest neighbors stored for each query. |
| minneighborcount | number | Minimal neighbor count stored. |
| maxneighborcount | number | Maximal neighbor count stored. |
| allneighborcount | number | All neighbor count stored. |
| querymolecules | MoleculeSetInfo | Description of query molecules. |
| targetmolecules | MoleculeSetInfo | Description of target molecules. |
| context | string | Associated context description. |
| qmolsurl | string | URL of query molecules. |
| tmolsurl | string | URL of target molecules. In case of self overlap results this is the same as qmolsurl. |
| queryindexproj | string | Index projector used for querues. |
| targetindexproj | string | Index projector used for targets. |
| self | boolean | true when self overlap results are represented. |
| mindissim | number | Lower bound of dissimilarity values. |
| maxdissim | number | Upper bound of dissimilarity values. |
| minneighborindex | number | Lower bound of neighbor indices. |
| maxneighborindex | number | Upper bound of neighbor indices. |
| url | string | URL of the knn data. |
| name | string | Name of the knn data. |
| time | number | Associated elapsed time in milliseconds. The represented time value depends on use case (load time on server startup or calculation time). |
Example
{
"dissimilarities" : [ 12345.0, 12345.0 ],
"targets" : [ 12345, 12345 ],
"queries" : [ 12345, 12345 ],
"querycount" : 12345,
"minneighborcount" : 12345,
"maxneighborcount" : 12345,
"allneighborcount" : 12345,
"querymolecules" : {
"size" : 12345,
"time" : 12345,
"description" : "...",
"absentmols" : 12345,
"absentids" : 12345,
"url" : "...",
"name" : "...",
"propnames" : [ "...", "..." ],
"props" : [ {
"name" : "...",
"type" : "...",
"numeric" : true,
"extractor" : "..."
}, {
"name" : "...",
"type" : "...",
"numeric" : true,
"extractor" : "..."
} ]
},
"targetmolecules" : {
"size" : 12345,
"time" : 12345,
"description" : "...",
"absentmols" : 12345,
"absentids" : 12345,
"url" : "...",
"name" : "...",
"propnames" : [ "...", "..." ],
"props" : [ {
"name" : "...",
"type" : "...",
"numeric" : true,
"extractor" : "..."
}, {
"name" : "...",
"type" : "...",
"numeric" : true,
"extractor" : "..."
} ]
},
"context" : "...",
"qmolsurl" : "...",
"tmolsurl" : "...",
"queryindexproj" : "...",
"targetindexproj" : "...",
"self" : true,
"mindissim" : 12345.0,
"maxdissim" : 12345.0,
"minneighborindex" : 12345,
"maxneighborindex" : 12345,
"url" : "...",
"name" : "...",
"time" : 12345
}