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

✨ Add colorblocks to baseplot similar to heatmap #3043

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

:fire: remove redundant code

efcf8df
Select commit
Loading
Failed to load commit list.
Open

✨ Add colorblocks to baseplot similar to heatmap #3043

:fire: remove redundant code
efcf8df
Select commit
Loading
Failed to load commit list.
Azure Pipelines / scverse.scanpy failed May 2, 2024 in 21m 18s

Build #20240502.3 had test failures

Details

Tests

  • Failed: 131 (1.52%)
  • Passed: 7,835 (90.95%)
  • Other: 649 (7.53%)
  • Total: 8,615
Code coverage

  • 9762 of 12846 line covered (75.99%)

Annotations

Check failure on line 7813 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / scverse.scanpy

Build log #L7813

Bash exited with code '1'.

Check failure on line 7823 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / scverse.scanpy

Build log #L7823

Bash exited with code '1'.

Check failure on line 8128 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / scverse.scanpy

Build log #L8128

Bash exited with code '1'.

Check failure on line 7718 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / scverse.scanpy

Build log #L7718

Bash exited with code '1'.

Check failure on line 1 in scanpy/tests/test_plotting.py::test_dotplot_matrixplot_stacked_violin[dotplot-fn0]

See this annotation in the file changed.

@azure-pipelines azure-pipelines / scverse.scanpy

scanpy/tests/test_plotting.py::test_dotplot_matrixplot_stacked_violin[dotplot-fn0]

image_comparer = <function image_comparer.<locals>.save_and_compare at 0x7f8bb10822a0>
id = 'dotplot'
fn = functools.partial(<function dotplot at 0x7f8bc828fc40>, groupby='cell_type', title='dotplot', dendrogram=True)

    @pytest.mark.parametrize(
        "id,fn",
        [
            (
                "dotplot",
                partial(
                    sc.pl.dotplot, groupby="cell_type", title="dotplot", dendrogram=True
                ),
            ),
            (
                "dotplot2",
                partial(
                    sc.pl.dotplot,
                    groupby="numeric_column",
                    use_raw=False,
                    num_categories=7,
                    title="non categorical obs",
                    figsize=(7, 2.5),
                ),
            ),
            (
                "dotplot3",
                partial(
                    sc.pl.dotplot,
                    groupby="cell_type",
                    dot_max=0.7,
                    dot_min=0.1,
                    cmap="hot_r",
                    title="dot_max=0.7 dot_min=0.1, var_groups",
                    var_group_positions=[(0, 1), (9, 10)],
                    var_group_labels=["A", "B"],
                    dendrogram=True,
                ),
            ),
            (
                "dotplot_std_scale_group",
                partial(
                    sc.pl.dotplot,
                    groupby="cell_type",
                    use_raw=False,
                    dendrogram=True,
                    layer="test",
                    swap_axes=True,
                    title="swap_axes, layer=-1*X, scale=group\nsmallest_dot=10",
                    standard_scale="group",
                    smallest_dot=10,
                ),
            ),
            (
                "dotplot_dict",
                partial(
                    sc.pl.dotplot,
                    groupby="cell_type",
                    dot_max=0.7,
                    dot_min=0.1,
                    color_map="winter",
                    title="var as dict",
                    dendrogram=True,
                ),
            ),
            (
                "matrixplot",
                partial(
                    sc.pl.matrixplot,
                    groupby="cell_type",
                    use_raw=False,
                    title="matrixplot",
                    dendrogram=True,
                ),
            ),
            (
                "matrixplot_std_scale_var_dict",
                partial(
                    sc.pl.matrixplot,
                    groupby="cell_type",
                    dendrogram=True,
                    standard_scale="var",
                    layer="test",
                    cmap="Blues_r",
                    title='scale var, custom colorbar_title, layer="test"',
                    colorbar_title="Scaled expression",
                ),
            ),
            (
                "matrixplot_std_scale_group",
                partial(
                    sc.pl.matrixplot,
                    groupby="cell_type",
                    use_raw=False,
                    standard_scale="group",
                    title="scale_group, swap_axes",
                    swap_axes=True,
                ),
            ),
            (
                "matrixplot2",
                partial(
                    sc.pl.matrixplot,
                    groupby="numeric_column",
                    use_raw=False,
                    num_categories=4,
                    title="non-categorical obs, custom figsize",
                    figsize=(8, 2.5),
                    cmap="RdBu_r",
                ),
            ),
            (
                "stacked_violin",
                partial(
                    sc.pl.stacked_violin,
                    groupby="cell_type",
                    use_raw=False,
                    title="stacked_violin",
                    dendrogram=True,
               
Raw output
/home/vsts/work/1/s/scanpy/tests/conftest.py:115: AssertionError: Image files did not match.

Check failure on line 1 in scanpy/tests/test_plotting.py::test_dotplot_matrixplot_stacked_violin[dotplot3-fn2]

See this annotation in the file changed.

@azure-pipelines azure-pipelines / scverse.scanpy

scanpy/tests/test_plotting.py::test_dotplot_matrixplot_stacked_violin[dotplot3-fn2]

image_comparer = <function image_comparer.<locals>.save_and_compare at 0x7f8bb09693a0>
id = 'dotplot3'
fn = functools.partial(<function dotplot at 0x7f8bc828fc40>, groupby='cell_type', dot_max=0.7, dot_min=0.1, cmap='hot_r', t..._max=0.7 dot_min=0.1, var_groups', var_group_positions=[(0, 1), (9, 10)], var_group_labels=['A', 'B'], dendrogram=True)

    @pytest.mark.parametrize(
        "id,fn",
        [
            (
                "dotplot",
                partial(
                    sc.pl.dotplot, groupby="cell_type", title="dotplot", dendrogram=True
                ),
            ),
            (
                "dotplot2",
                partial(
                    sc.pl.dotplot,
                    groupby="numeric_column",
                    use_raw=False,
                    num_categories=7,
                    title="non categorical obs",
                    figsize=(7, 2.5),
                ),
            ),
            (
                "dotplot3",
                partial(
                    sc.pl.dotplot,
                    groupby="cell_type",
                    dot_max=0.7,
                    dot_min=0.1,
                    cmap="hot_r",
                    title="dot_max=0.7 dot_min=0.1, var_groups",
                    var_group_positions=[(0, 1), (9, 10)],
                    var_group_labels=["A", "B"],
                    dendrogram=True,
                ),
            ),
            (
                "dotplot_std_scale_group",
                partial(
                    sc.pl.dotplot,
                    groupby="cell_type",
                    use_raw=False,
                    dendrogram=True,
                    layer="test",
                    swap_axes=True,
                    title="swap_axes, layer=-1*X, scale=group\nsmallest_dot=10",
                    standard_scale="group",
                    smallest_dot=10,
                ),
            ),
            (
                "dotplot_dict",
                partial(
                    sc.pl.dotplot,
                    groupby="cell_type",
                    dot_max=0.7,
                    dot_min=0.1,
                    color_map="winter",
                    title="var as dict",
                    dendrogram=True,
                ),
            ),
            (
                "matrixplot",
                partial(
                    sc.pl.matrixplot,
                    groupby="cell_type",
                    use_raw=False,
                    title="matrixplot",
                    dendrogram=True,
                ),
            ),
            (
                "matrixplot_std_scale_var_dict",
                partial(
                    sc.pl.matrixplot,
                    groupby="cell_type",
                    dendrogram=True,
                    standard_scale="var",
                    layer="test",
                    cmap="Blues_r",
                    title='scale var, custom colorbar_title, layer="test"',
                    colorbar_title="Scaled expression",
                ),
            ),
            (
                "matrixplot_std_scale_group",
                partial(
                    sc.pl.matrixplot,
                    groupby="cell_type",
                    use_raw=False,
                    standard_scale="group",
                    title="scale_group, swap_axes",
                    swap_axes=True,
                ),
            ),
            (
                "matrixplot2",
                partial(
                    sc.pl.matrixplot,
                    groupby="numeric_column",
                    use_raw=False,
                    num_categories=4,
                    title="non-categorical obs, custom figsize",
                    figsize=(8, 2.5),
                    cmap="RdBu_r",
                ),
            ),
            (
                "stacked_violin",
                partial(
                    sc.pl.stacked_violin,
                    groupby="cell_type",
Raw output
/home/vsts/work/1/s/scanpy/tests/conftest.py:115: AssertionError: Image files did not match.

Check failure on line 1 in scanpy/tests/test_plotting.py::test_dotplot_matrixplot_stacked_violin[dotplot_dict-fn4]

See this annotation in the file changed.

@azure-pipelines azure-pipelines / scverse.scanpy

scanpy/tests/test_plotting.py::test_dotplot_matrixplot_stacked_violin[dotplot_dict-fn4]

image_comparer = <function image_comparer.<locals>.save_and_compare at 0x7f8bb07b8a40>
id = 'dotplot_dict'
fn = functools.partial(<function dotplot at 0x7f8bc828fc40>, groupby='cell_type', dot_max=0.7, dot_min=0.1, color_map='winter', title='var as dict', dendrogram=True)

    @pytest.mark.parametrize(
        "id,fn",
        [
            (
                "dotplot",
                partial(
                    sc.pl.dotplot, groupby="cell_type", title="dotplot", dendrogram=True
                ),
            ),
            (
                "dotplot2",
                partial(
                    sc.pl.dotplot,
                    groupby="numeric_column",
                    use_raw=False,
                    num_categories=7,
                    title="non categorical obs",
                    figsize=(7, 2.5),
                ),
            ),
            (
                "dotplot3",
                partial(
                    sc.pl.dotplot,
                    groupby="cell_type",
                    dot_max=0.7,
                    dot_min=0.1,
                    cmap="hot_r",
                    title="dot_max=0.7 dot_min=0.1, var_groups",
                    var_group_positions=[(0, 1), (9, 10)],
                    var_group_labels=["A", "B"],
                    dendrogram=True,
                ),
            ),
            (
                "dotplot_std_scale_group",
                partial(
                    sc.pl.dotplot,
                    groupby="cell_type",
                    use_raw=False,
                    dendrogram=True,
                    layer="test",
                    swap_axes=True,
                    title="swap_axes, layer=-1*X, scale=group\nsmallest_dot=10",
                    standard_scale="group",
                    smallest_dot=10,
                ),
            ),
            (
                "dotplot_dict",
                partial(
                    sc.pl.dotplot,
                    groupby="cell_type",
                    dot_max=0.7,
                    dot_min=0.1,
                    color_map="winter",
                    title="var as dict",
                    dendrogram=True,
                ),
            ),
            (
                "matrixplot",
                partial(
                    sc.pl.matrixplot,
                    groupby="cell_type",
                    use_raw=False,
                    title="matrixplot",
                    dendrogram=True,
                ),
            ),
            (
                "matrixplot_std_scale_var_dict",
                partial(
                    sc.pl.matrixplot,
                    groupby="cell_type",
                    dendrogram=True,
                    standard_scale="var",
                    layer="test",
                    cmap="Blues_r",
                    title='scale var, custom colorbar_title, layer="test"',
                    colorbar_title="Scaled expression",
                ),
            ),
            (
                "matrixplot_std_scale_group",
                partial(
                    sc.pl.matrixplot,
                    groupby="cell_type",
                    use_raw=False,
                    standard_scale="group",
                    title="scale_group, swap_axes",
                    swap_axes=True,
                ),
            ),
            (
                "matrixplot2",
                partial(
                    sc.pl.matrixplot,
                    groupby="numeric_column",
                    use_raw=False,
                    num_categories=4,
                    title="non-categorical obs, custom figsize",
                    figsize=(8, 2.5),
                    cmap="RdBu_r",
                ),
            ),
            (
                "stacked_violin",
                partial(
                    sc.pl.stacked_violin,
                    groupby="cell_type",
                    use_raw=False,
                    title="stacked_violin
Raw output
/home/vsts/work/1/s/scanpy/tests/conftest.py:115: AssertionError: Image files did not match.

Check failure on line 1 in scanpy/tests/test_plotting.py::test_dotplot_matrixplot_stacked_violin[dotplot_std_scale_group-fn3]

See this annotation in the file changed.

@azure-pipelines azure-pipelines / scverse.scanpy

scanpy/tests/test_plotting.py::test_dotplot_matrixplot_stacked_violin[dotplot_std_scale_group-fn3]

image_comparer = <function image_comparer.<locals>.save_and_compare at 0x7f8bb0a76e80>
id = 'dotplot_std_scale_group'
fn = functools.partial(<function dotplot at 0x7f8bc828fc40>, groupby='cell_type', use_raw=False, dendrogram=True, layer='test', swap_axes=True, title='swap_axes, layer=-1*X, scale=group\nsmallest_dot=10', standard_scale='group', smallest_dot=10)

    @pytest.mark.parametrize(
        "id,fn",
        [
            (
                "dotplot",
                partial(
                    sc.pl.dotplot, groupby="cell_type", title="dotplot", dendrogram=True
                ),
            ),
            (
                "dotplot2",
                partial(
                    sc.pl.dotplot,
                    groupby="numeric_column",
                    use_raw=False,
                    num_categories=7,
                    title="non categorical obs",
                    figsize=(7, 2.5),
                ),
            ),
            (
                "dotplot3",
                partial(
                    sc.pl.dotplot,
                    groupby="cell_type",
                    dot_max=0.7,
                    dot_min=0.1,
                    cmap="hot_r",
                    title="dot_max=0.7 dot_min=0.1, var_groups",
                    var_group_positions=[(0, 1), (9, 10)],
                    var_group_labels=["A", "B"],
                    dendrogram=True,
                ),
            ),
            (
                "dotplot_std_scale_group",
                partial(
                    sc.pl.dotplot,
                    groupby="cell_type",
                    use_raw=False,
                    dendrogram=True,
                    layer="test",
                    swap_axes=True,
                    title="swap_axes, layer=-1*X, scale=group\nsmallest_dot=10",
                    standard_scale="group",
                    smallest_dot=10,
                ),
            ),
            (
                "dotplot_dict",
                partial(
                    sc.pl.dotplot,
                    groupby="cell_type",
                    dot_max=0.7,
                    dot_min=0.1,
                    color_map="winter",
                    title="var as dict",
                    dendrogram=True,
                ),
            ),
            (
                "matrixplot",
                partial(
                    sc.pl.matrixplot,
                    groupby="cell_type",
                    use_raw=False,
                    title="matrixplot",
                    dendrogram=True,
                ),
            ),
            (
                "matrixplot_std_scale_var_dict",
                partial(
                    sc.pl.matrixplot,
                    groupby="cell_type",
                    dendrogram=True,
                    standard_scale="var",
                    layer="test",
                    cmap="Blues_r",
                    title='scale var, custom colorbar_title, layer="test"',
                    colorbar_title="Scaled expression",
                ),
            ),
            (
                "matrixplot_std_scale_group",
                partial(
                    sc.pl.matrixplot,
                    groupby="cell_type",
                    use_raw=False,
                    standard_scale="group",
                    title="scale_group, swap_axes",
                    swap_axes=True,
                ),
            ),
            (
                "matrixplot2",
                partial(
                    sc.pl.matrixplot,
                    groupby="numeric_column",
                    use_raw=False,
                    num_categories=4,
                    title="non-categorical obs, custom figsize",
                    figsize=(8, 2.5),
                    cmap="RdBu_r",
                ),
            ),
            (
                "stacked_violin",
                partial(
                    sc.pl.stacked_violin,
                    groupb
Raw output
/home/vsts/work/1/s/scanpy/tests/conftest.py:115: AssertionError: Image files did not match.