-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use r-lib actions * move r-lib to top * add R dependency install * return error instead of np.nan when kBET is not installed * install devtools via R * use rp2y * use remotes instead of devtools * move r-lib actions to test workflow * add GITHUB_PAT * separate run for R functions * use correct R version * install test dependencies
- Loading branch information
Showing
5 changed files
with
52 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import numpy as np | ||
|
||
import scib | ||
from tests.common import LOGGER | ||
from tests.common import LOGGER, assert_near_exact | ||
|
||
|
||
def test_kbet(adata_pca): | ||
score = scib.me.kBET( | ||
adata_pca, batch_key="batch", label_key="celltype", embed="X_pca" | ||
) | ||
LOGGER.info(f"score: {score}") | ||
assert np.isnan(score) | ||
assert_near_exact(score, 0.556108994805538, diff=1e-02) |