utils
navis.nbl.utils.make_linkage
#
Make linkage from input. If input looks like linkage it is passed through.
Source code in navis/nbl/utils.py
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 |
|
navis.nbl.utils.most
#
Check if most (as opposed to all) entries are True.
Source code in navis/nbl/utils.py
427 428 429 430 431 |
|
navis.nbl.utils.nblast_prime
#
Generate a smoothed version of the NBLAST scores.
In brief: 1. Run PCA on the NBLAST scores and extract the first N components. 2. From that calulate a new similarity matrix.
Requires scikit-learn.
PARAMETER | DESCRIPTION |
---|---|
scores |
TYPE: |
n_dim |
TYPE: |
metric |
TYPE: |
RETURNS | DESCRIPTION |
---|---|
scores_new | |
Source code in navis/nbl/utils.py
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 |
|