Skip to content

Commit 4e44bcb

Browse files
authored
Merge pull request #200 from scverse/pc_fix
Fixed precomit issues
2 parents 9b49b59 + 23e3146 commit 4e44bcb

135 files changed

Lines changed: 2634 additions & 3099 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"scanpy": ("https://scanpy.readthedocs.io/en/stable/", None),
9898
"numpy": ("https://numpy.org/doc/stable/", None),
9999
"matplotlib": ("https://matplotlib.org/stable/", None),
100-
'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),
100+
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
101101
}
102102

103103
# List of patterns, relative to source directory, that match files and
@@ -115,8 +115,8 @@
115115
html_static_path = ["_static"]
116116
html_css_files = ["css/custom.css"]
117117
html_title = project_name
118-
html_logo = '_static/images/logo.png'
119-
html_favicon = '_static/images/logo.png'
118+
html_logo = "_static/images/logo.png"
119+
html_favicon = "_static/images/logo.png"
120120

121121
html_theme_options = {
122122
"repository_url": repository_url,

docs/notebooks/bench/rna.ipynb

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -406,18 +406,14 @@
406406
"outputs": [],
407407
"source": [
408408
"def random(x, w):\n",
409+
" \"\"\"Random baseline method\"\"\"\n",
409410
" return np.random.rand(1)[0]\n",
410411
"\n",
412+
"\n",
411413
"df = dc.bm.benchmark(\n",
412414
" adata=adata,\n",
413415
" net=net,\n",
414-
" kws_decouple={\n",
415-
" 'cons': True,\n",
416-
" 'tmin': 3,\n",
417-
" 'args':{\n",
418-
" 'waggr': {'fun': random}\n",
419-
" }\n",
420-
" },\n",
416+
" kws_decouple={\"cons\": True, \"tmin\": 3, \"args\": {\"waggr\": {\"fun\": random}}},\n",
421417
")"
422418
]
423419
},
@@ -578,7 +574,7 @@
578574
}
579575
],
580576
"source": [
581-
"dc.bm.pl.auc(df, hue='method')"
577+
"dc.bm.pl.auc(df, hue=\"method\")"
582578
]
583579
},
584580
{
@@ -614,7 +610,7 @@
614610
}
615611
],
616612
"source": [
617-
"dc.bm.pl.fscore(df, hue='method')"
613+
"dc.bm.pl.fscore(df, hue=\"method\")"
618614
]
619615
},
620616
{
@@ -650,7 +646,7 @@
650646
}
651647
],
652648
"source": [
653-
"dc.bm.pl.qrank(df, hue='method')"
649+
"dc.bm.pl.qrank(df, hue=\"method\")"
654650
]
655651
},
656652
{
@@ -968,9 +964,9 @@
968964
}
969965
],
970966
"source": [
971-
"dc.bm.pl.bar(df=hdf, x='H(auroc, auprc)', y='method', hue='method')\n",
972-
"dc.bm.pl.bar(df=hdf, x='F-score', y='method', hue='method')\n",
973-
"dc.bm.pl.bar(df=hdf, x='H(1-qrank, -log10(pval))', y='method', hue='method')"
967+
"dc.bm.pl.bar(df=hdf, x=\"H(auroc, auprc)\", y=\"method\", hue=\"method\")\n",
968+
"dc.bm.pl.bar(df=hdf, x=\"F-score\", y=\"method\", hue=\"method\")\n",
969+
"dc.bm.pl.bar(df=hdf, x=\"H(1-qrank, -log10(pval))\", y=\"method\", hue=\"method\")"
974970
]
975971
},
976972
{
@@ -1000,7 +996,7 @@
1000996
}
1001997
],
1002998
"source": [
1003-
"dc.bm.pl.summary(df=hdf, y='method', figsize=(6, 3))"
999+
"dc.bm.pl.summary(df=hdf, y=\"method\", figsize=(6, 3))"
10041000
]
10051001
},
10061002
{
@@ -1644,8 +1640,8 @@
16441640
"metadata": {},
16451641
"outputs": [],
16461642
"source": [
1647-
"unw_ct = ct.drop(columns='weight')\n",
1648-
"unw_do = do.drop(columns='weight')"
1643+
"unw_ct = ct.drop(columns=\"weight\")\n",
1644+
"unw_do = do.drop(columns=\"weight\")"
16491645
]
16501646
},
16511647
{
@@ -1667,15 +1663,15 @@
16671663
"df = dc.bm.benchmark(\n",
16681664
" adata=adata,\n",
16691665
" net={\n",
1670-
" 'collectri': ct,\n",
1671-
" 'dorothea': do,\n",
1672-
" 'unw_collectri': unw_ct,\n",
1673-
" 'unw_dorothea': unw_do,\n",
1674-
" 'r_collectri': rct,\n",
1675-
" 'r_dorothea': rdo,\n",
1666+
" \"collectri\": ct,\n",
1667+
" \"dorothea\": do,\n",
1668+
" \"unw_collectri\": unw_ct,\n",
1669+
" \"unw_dorothea\": unw_do,\n",
1670+
" \"r_collectri\": rct,\n",
1671+
" \"r_dorothea\": rdo,\n",
16761672
" },\n",
16771673
" kws_decouple={\n",
1678-
" 'methods': 'ulm',\n",
1674+
" \"methods\": \"ulm\",\n",
16791675
" },\n",
16801676
")"
16811677
]
@@ -1897,7 +1893,7 @@
18971893
}
18981894
],
18991895
"source": [
1900-
"dc.bm.pl.auc(df, hue='net')"
1896+
"dc.bm.pl.auc(df, hue=\"net\")"
19011897
]
19021898
},
19031899
{
@@ -1926,7 +1922,7 @@
19261922
}
19271923
],
19281924
"source": [
1929-
"dc.bm.pl.fscore(df, hue='net')"
1925+
"dc.bm.pl.fscore(df, hue=\"net\")"
19301926
]
19311927
},
19321928
{
@@ -1955,7 +1951,7 @@
19551951
}
19561952
],
19571953
"source": [
1958-
"dc.bm.pl.qrank(df, hue='net')"
1954+
"dc.bm.pl.qrank(df, hue=\"net\")"
19591955
]
19601956
},
19611957
{
@@ -2172,9 +2168,9 @@
21722168
}
21732169
],
21742170
"source": [
2175-
"dc.bm.pl.bar(df=hdf, x='H(auroc, auprc)', y='net', hue='net')\n",
2176-
"dc.bm.pl.bar(df=hdf, x='F-score', y='net', hue='net')\n",
2177-
"dc.bm.pl.bar(df=hdf, x='H(1-qrank, -log10(pval))', y='net', hue='net')"
2171+
"dc.bm.pl.bar(df=hdf, x=\"H(auroc, auprc)\", y=\"net\", hue=\"net\")\n",
2172+
"dc.bm.pl.bar(df=hdf, x=\"F-score\", y=\"net\", hue=\"net\")\n",
2173+
"dc.bm.pl.bar(df=hdf, x=\"H(1-qrank, -log10(pval))\", y=\"net\", hue=\"net\")"
21782174
]
21792175
},
21802176
{
@@ -2204,7 +2200,7 @@
22042200
}
22052201
],
22062202
"source": [
2207-
"dc.bm.pl.summary(df=hdf, y='net', figsize=(7, 3))"
2203+
"dc.bm.pl.summary(df=hdf, y=\"net\", figsize=(7, 3))"
22082204
]
22092205
},
22102206
{

0 commit comments

Comments
 (0)