Skip to content

Commit 897eef5

Browse files
authored
Fix links in score-genes how-to (#199)
1 parent 020f424 commit 897eef5

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

conf.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,12 @@
4040
source_suffix = ".rst"
4141
master_doc = "index"
4242
language = "en"
43-
exclude_patterns = [
44-
"_build",
45-
"Thumbs.db",
46-
".DS_Store",
47-
"**.ipynb_checkpoints",
48-
"scanpy_workshop/*",
49-
]
43+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints", "scanpy_workshop", ".*cache"]
5044
pygments_style = "sphinx"
5145

5246
intersphinx_mapping = dict(
5347
anndata=("https://anndata.readthedocs.io/en/stable/", None),
54-
scanpy=("https://scanpy.readthedocs.io/en/stable/", None),
48+
scanpy=("https://scanpy.readthedocs.io/en/latest/", None),
5549
)
5650
suppress_warnings = ["image.not_readable"]
5751

@@ -137,7 +131,7 @@ def run(self) -> list[nodes.Node]:
137131
)
138132
if ref is None:
139133
msg = f"Reference to scanpy:{text} not found"
140-
raise AssertionError(msg)
134+
raise self.warning(msg)
141135
desc = nodes.inline("", f"{MSG}: ")
142136
banner = nodes.danger(
143137
text,

how-to/cell-cycle.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,8 @@
495495
"metadata": {},
496496
"source": [
497497
"We here perform cell cycle scoring.\n",
498-
"The function is actually a wrapper to {func}`scanpy.tl.score_gene_list`, which is launched twice, to score separately S and G2M phases.\n",
499-
"Both {func}`scanpy.tl.score_gene_list` and {func}`scanpy.tl.score_cell_cycle_genes` are a port from _Seurat_ and are supposed to work in a very similar way. \n",
498+
"The function is actually a wrapper to {func}`scanpy.tl.score_genes`, which is launched twice, to score separately S and G2M phases.\n",
499+
"Both {func}`scanpy.tl.score_genes` and {func}`scanpy.tl.score_genes_cell_cycle` are a port from _Seurat_ and are supposed to work in a very similar way. \n",
500500
"To score a gene list, the algorithm calculates the difference of mean expression of the given list and the mean expression of reference genes.\n",
501501
"To build the reference, the function randomly chooses a bunch of genes matching the distribution of the expression of the given list.\n",
502502
"Cell cycle scoring adds three slots in data, a score for S phase, a score for G2M phase and the predicted cell cycle phase."

0 commit comments

Comments
 (0)