Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DensMAP support #2946

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Merge branch 'main' of github.com:scverse/scanpy into keller-mark/den…

faaf5ae
Select commit
Loading
Failed to load commit list.
Open

DensMAP support #2946

Merge branch 'main' of github.com:scverse/scanpy into keller-mark/den…
faaf5ae
Select commit
Loading
Failed to load commit list.
Azure Pipelines / scverse.scanpy failed Jan 14, 2025 in 29m 15s

Build #20250114.1 had test failures

Details

Tests

  • Failed: 1 (0.01%)
  • Passed: 10,034 (91.72%)
  • Other: 905 (8.27%)
  • Total: 10,940
Code coverage

  • 9982 of 13273 line covered (75.21%)

Annotations

Check failure on line 3159 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / scverse.scanpy

Build log #L3159

Bash exited with code '1'.

Check failure on line 1 in tests/test_plotting.py::test_scatterplots[densmap_nocolor-fn20]

See this annotation in the file changed.

@azure-pipelines azure-pipelines / scverse.scanpy

tests/test_plotting.py::test_scatterplots[densmap_nocolor-fn20]

image_comparer = <function image_comparer.<locals>.save_and_compare at 0x7f4e1b579240>
pbmc_scatterplots = AnnData object with n_obs × n_vars = 700 × 765
    obs: 'bulk_labels', 'n_genes', 'percent_mito', 'n_counts', 'S_score...'X_tsne', 'X_diffmap', 'X_densmap'
    varm: 'PCs'
    layers: 'sparse', 'test'
    obsp: 'distances', 'connectivities'
id = 'densmap_nocolor'
fn = functools.partial(<function embedding at 0x7f4e367ee290>, basis='X_densmap')

    @pytest.mark.parametrize(
        ("id", "fn"),
        [
            ("pca", partial(sc.pl.pca, color="bulk_labels")),
            (
                "pca_with_fonts",
                partial(
                    sc.pl.pca,
                    color=["bulk_labels", "louvain"],
                    legend_loc="on data",
                    legend_fontoutline=2,
                    legend_fontweight="normal",
                    legend_fontsize=10,
                ),
            ),
            pytest.param(
                "3dprojection", partial(sc.pl.pca, color="bulk_labels", projection="3d")
            ),
            (
                "multipanel",
                partial(
                    sc.pl.pca,
                    color=["CD3D", "CD79A"],
                    components=["1,2", "1,3"],
                    vmax=5,
                    use_raw=False,
                    vmin=-5,
                    cmap="seismic",
                ),
            ),
            (
                "multipanel_vcenter",
                partial(
                    sc.pl.pca,
                    color=["CD3D", "CD79A"],
                    components=["1,2", "1,3"],
                    vmax=5,
                    use_raw=False,
                    vmin=-5,
                    vcenter=1,
                    cmap="seismic",
                ),
            ),
            (
                "pca_one_marker",
                partial(sc.pl.pca, color="louvain", marker="^"),
            ),
            (
                "pca_one_marker_multiple_colors",
                partial(sc.pl.pca, color=["louvain", "bulk_labels"], marker="^"),
            ),
            (
                "pca_multiple_markers_multiple_colors",
                partial(sc.pl.pca, color=["louvain", "bulk_labels"], marker=["^", "x"]),
            ),
            (
                "pca_marker_with_dimensions",
                partial(
                    sc.pl.pca, color="louvain", marker="^", dimensions=[(0, 1), (1, 2)]
                ),
            ),
            (
                "pca_markers_with_dimensions",
                partial(
                    sc.pl.pca,
                    color="louvain",
                    marker=["^", "x"],
                    dimensions=[(0, 1), (1, 2)],
                ),
            ),
            (
                "pca_markers_colors_with_dimensions",
                partial(
                    sc.pl.pca,
                    color=["louvain", "bulk_labels"],
                    marker=["^", "x"],
                    dimensions=[(0, 1), (1, 2)],
                ),
            ),
            (
                "pca_sparse_layer",
                partial(sc.pl.pca, color=["CD3D", "CD79A"], layer="sparse", cmap="viridis"),
            ),
            pytest.param(
                "tsne",
                partial(sc.pl.tsne, color=["CD3D", "louvain"]),
                marks=pytest.mark.xfail(
                    reason="slight differences even after setting random_state."
                ),
            ),
            ("umap_nocolor", sc.pl.umap),
            (
                "umap",
                partial(
                    sc.pl.umap,
                    color=["louvain"],
                    palette=["b", "grey80", "r", "yellow", "black", "gray", "lightblue"],
                    frameon=False,
                ),
            ),
            (
                "umap_gene_expr",
                partial(
                    sc.pl.umap,
                    color=np.array(["LYZ", "CD79A
Raw output
/home/vsts/work/1/s/tests/test_plotting.py:1188: AssertionError: Image files did not match.