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
402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 | |
navis.nbl.utils.most #
Check if most (as opposed to all) entries are True.
Source code in navis/nbl/utils.py
551 552 553 554 555 | |
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
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 | |