Skip to content

Commit 2cd1d72

Browse files
aarmeyAaron Meyer
and
Aaron Meyer
authored
Rename sccp to RISE (#489)
* Rename from sccp * Remove more sccp * Refactor --------- Co-authored-by: Aaron Meyer <[email protected]>
1 parent a02c607 commit 2cd1d72

Some content is hidden

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

45 files changed

+66
-66
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
- name: Test with pytest
2121
run: make coverage.xml
2222
- name: Check formatting
23-
run: rye fmt --check sccp
23+
run: rye fmt --check RISE
2424
- name: Check linting
25-
run: rye lint sccp
25+
run: rye lint RISE
2626
- name: Upload coverage to Codecov
2727
uses: codecov/codecov-action@v4
2828
with:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sccp/figures/common.py renamed to RISE/figures/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def genFigure():
6868
start = time.time()
6969
nameOut = "figure" + sys.argv[1]
7070

71-
exec(f"from sccp.figures.{nameOut} import makeFigure", globals())
71+
exec(f"from RISE.figures.{nameOut} import makeFigure", globals())
7272
ff = makeFigure() # type: ignore # noqa: F821
7373

7474
if ff is not None:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sccp/figures/figure4e_k.py renamed to RISE/figures/figure4e_k.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def plot_ave2genes_per_status(df_total, gene1, gene2, ax):
155155

156156
def plot_toppfun(ax):
157157
"""Plot GSEA results"""
158-
df = pd.read_csv("sccp/data/lupus/ToppFun_Cmp14.csv", dtype=str)
158+
df = pd.read_csv("RISE/data/lupus/ToppFun_Cmp14.csv", dtype=str)
159159
df = df.drop(columns=["ID", "Verbose ID"])
160160
category = df["Category"].to_numpy().astype(str)
161161

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sccp/figures/figureS9a_d.py renamed to RISE/figures/figureS9a_d.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
import torch
1717
from harmonypy import run_harmony
1818

19-
from sccp.factorization import pf2
20-
from sccp.figures.common import getSetup, subplotLabel
21-
from sccp.imports import import_lupus
19+
from RISE.factorization import pf2
20+
from RISE.figures.common import getSetup, subplotLabel
21+
from RISE.imports import import_lupus
2222

2323
# Simplified to single-line comments for configuration flags
2424
RECOMPUTE = False
File renamed without changes.

sccp/gating.py renamed to RISE/gating.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def gateThomsonCellsLeiden(X) -> npt.ArrayLike:
1717

1818
def gateThomsonCells(X) -> npt.ArrayLike:
1919
"""Manually gates cell types for Thomson PaCMAP"""
20-
cellTypeDF = pd.read_csv("sccp/data/Thomson/ThomsonCellTypes.csv", index_col=0)
20+
cellTypeDF = pd.read_csv("RISE/data/Thomson/ThomsonCellTypes.csv", index_col=0)
2121
cellTypeDF.index.name = "cell_barcode"
2222
X.obs = X.obs.join(cellTypeDF, on="cell_barcode", how="inner")
2323

@@ -42,7 +42,7 @@ def Thomson_Doublet():
4242
doublet_score = clf.doublet_score()
4343
X.obs["doublet"] = doublets
4444
X.obs["doublet_score"] = doublet_score
45-
X.obs["doublet"].to_csv("sccp/data/Thomson/ThomsonDoublets.csv")
45+
X.obs["doublet"].to_csv("RISE/data/Thomson/ThomsonDoublets.csv")
4646

4747

4848
def getHiResOldLupus(X) -> npt.ArrayLike:

sccp/imports.py renamed to RISE/imports.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
def import_thomson() -> anndata.AnnData:
99
"""Import Thompson lab PBMC dataset."""
1010
# Cell barcodes, sample id of treatment and sample number
11-
metafile = pd.read_csv("sccp/data/Thomson/meta.csv", usecols=[0, 1])
11+
metafile = pd.read_csv("RISE/data/Thomson/meta.csv", usecols=[0, 1])
1212
# X = sc.read_10x_mtx(
1313
# "/opt/andrew/Thomson/", var_names="gene_symbols", make_unique=True
1414
# )
@@ -26,7 +26,7 @@ def import_thomson() -> anndata.AnnData:
2626
}
2727
)
2828

29-
doubletDF = pd.read_csv("sccp/data/Thomson/ThomsonDoublets.csv", index_col=0)
29+
doubletDF = pd.read_csv("RISE/data/Thomson/ThomsonDoublets.csv", index_col=0)
3030
doubletDF.index.name = "cell_barcode"
3131
X.obs = X.obs.join(doubletDF, on="cell_barcode", how="inner")
3232

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
.PHONY: clean test pyright
22

3-
flist = $(wildcard sccp/figures/figure*.py)
4-
allOutput = $(patsubst sccp/figures/figure%.py, output/figure%.svg, $(flist))
3+
flist = $(wildcard RISE/figures/figure*.py)
4+
allOutput = $(patsubst RISE/figures/figure%.py, output/figure%.svg, $(flist))
55

66
all: $(allOutput)
77

88
allThomson: $(filter output/figureThomson%, $(allOutput))
99

1010
allLupus: $(filter output/figureLupus%, $(allOutput))
1111

12-
output/figure%.svg: sccp/figures/figure%.py
12+
output/figure%.svg: RISE/figures/figure%.py
1313
@ mkdir -p ./output
1414
rye run fbuild $*
1515

@@ -20,10 +20,10 @@ test: .venv
2020
rye sync
2121

2222
coverage.xml: .venv
23-
rye run pytest --junitxml=junit.xml --cov=sccp --cov-report xml:coverage.xml
23+
rye run pytest --junitxml=junit.xml --cov=RISE --cov-report xml:coverage.xml
2424

2525
pyright: .venv
26-
rye run pyright sccp
26+
rye run pyright RISE
2727

2828
clean:
2929
rm -rf output profile profile.svg

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "sccp"
2+
name = "RISE"
33
version = "0.1.0"
44
description = "Single cell analysis across conditions using PARAFAC2."
55
authors = [{name = "Andrew Ramirez"}, {name = "Aaron Meyer", email = "[email protected]" }]
@@ -38,8 +38,8 @@ dependencies = [
3838
readme = "README.md"
3939

4040
[project.scripts]
41-
fbuild = "sccp.figures.common:genFigure"
42-
factor = "sccp.imports:factorSave"
41+
fbuild = "RISE.figures.common:genFigure"
42+
factor = "RISE.imports:factorSave"
4343

4444

4545
[build-system]
@@ -59,7 +59,7 @@ dev-dependencies = [
5959
allow-direct-references = true
6060

6161
[tool.hatch.build.targets.wheel]
62-
packages = ["sccp"]
62+
packages = ["RISE"]
6363

6464
[tool.ruff.lint]
6565
select = [

requirements-dev.lock

+23-23
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ anndata==0.11.1
2626
# via doubletdetection
2727
# via mudata
2828
# via parafac2
29+
# via rise
2930
# via scanpy
30-
# via sccp
3131
# via scib
3232
# via scvi-tools
3333
annoy==1.17.3
@@ -64,19 +64,19 @@ cycler==0.12.1
6464
dask==2024.8.2
6565
# via dask-expr
6666
# via datashader
67-
# via sccp
67+
# via rise
6868
dask-expr==1.1.13
6969
# via dask
7070
datashader==0.16.3
71-
# via sccp
71+
# via rise
7272
decorator==5.1.1
7373
# via ipython
7474
deprecated==1.2.14
7575
# via scib
7676
docrep==0.3.2
7777
# via scvi-tools
7878
doubletdetection==4.2
79-
# via sccp
79+
# via rise
8080
etils==1.11.0
8181
# via optax
8282
# via orbax-checkpoint
@@ -108,16 +108,16 @@ geosketch==1.3
108108
grpcio==1.68.1
109109
# via tensorboard
110110
gseapy==1.1.3
111-
# via sccp
111+
# via rise
112112
h5netcdf==1.3.0
113-
# via sccp
113+
# via rise
114114
h5py==3.11.0
115115
# via anndata
116116
# via h5netcdf
117117
# via scanpy
118118
# via scib
119119
harmonypy==0.0.10
120-
# via sccp
120+
# via rise
121121
humanize==4.11.0
122122
# via orbax-checkpoint
123123
idna==3.8
@@ -167,7 +167,7 @@ legacy-api-wrap==1.4
167167
leidenalg==0.10.2
168168
# via doubletdetection
169169
# via phenograph
170-
# via sccp
170+
# via rise
171171
# via scib
172172
lightning==2.4.0
173173
# via scvi-tools
@@ -268,9 +268,9 @@ numpy==2.0.2
268268
# via phenograph
269269
# via pyarrow
270270
# via pyro-ppl
271+
# via rise
271272
# via scanorama
272273
# via scanpy
273-
# via sccp
274274
# via scib
275275
# via scikit-learn
276276
# via scikit-misc
@@ -342,7 +342,7 @@ packaging==24.1
342342
# via xarray
343343
pacmap==0.7.3
344344
# via parafac2
345-
# via sccp
345+
# via rise
346346
pandas==2.2.2
347347
# via anndata
348348
# via dask
@@ -351,16 +351,16 @@ pandas==2.2.2
351351
# via doubletdetection
352352
# via gseapy
353353
# via harmonypy
354+
# via rise
354355
# via scanpy
355-
# via sccp
356356
# via scib
357357
# via scvi-tools
358358
# via seaborn
359359
# via statsmodels
360360
# via tlviz
361361
# via xarray
362362
parafac2 @ git+https://github.com/meyer-lab/parafac2.git@6600c677a77d0f242668babf39559cf7953ff534
363-
# via sccp
363+
# via rise
364364
param==2.1.1
365365
# via datashader
366366
# via pyct
@@ -439,23 +439,23 @@ rich==13.9.4
439439
# via flax
440440
# via scvi-tools
441441
scanorama==1.7.4
442-
# via sccp
442+
# via rise
443443
scanpy==1.10.4
444444
# via doubletdetection
445-
# via sccp
445+
# via rise
446446
# via scib
447447
scib==1.1.5
448-
# via sccp
448+
# via rise
449449
scikit-learn==1.6.0
450450
# via geosketch
451451
# via harmonypy
452452
# via pacmap
453453
# via parafac2
454454
# via phenograph
455455
# via pynndescent
456+
# via rise
456457
# via scanorama
457458
# via scanpy
458-
# via sccp
459459
# via scib
460460
# via scvi-tools
461461
# via umap-learn
@@ -472,9 +472,9 @@ scipy==1.14.1
472472
# via parafac2
473473
# via phenograph
474474
# via pynndescent
475+
# via rise
475476
# via scanorama
476477
# via scanpy
477-
# via sccp
478478
# via scib
479479
# via scikit-learn
480480
# via scvi-tools
@@ -484,10 +484,10 @@ scipy==1.14.1
484484
# via tlviz
485485
# via umap-learn
486486
scvi-tools==1.2.2.post1
487-
# via sccp
487+
# via rise
488488
seaborn==0.13.2
489+
# via rise
489490
# via scanpy
490-
# via sccp
491491
# via scib
492492
session-info==1.0.0
493493
# via scanpy
@@ -513,8 +513,8 @@ sparse==0.15.4
513513
stack-data==0.6.3
514514
# via ipython
515515
statsmodels==0.14.2
516+
# via rise
516517
# via scanpy
517-
# via sccp
518518
# via tlviz
519519
stdlib-list==0.10.0
520520
# via session-info
@@ -526,7 +526,7 @@ tensorboard-data-server==0.7.2
526526
# via tensorboard
527527
tensorly==0.8.1
528528
# via parafac2
529-
# via sccp
529+
# via rise
530530
tensorstore==0.1.71
531531
# via flax
532532
# via orbax-checkpoint
@@ -536,7 +536,7 @@ threadpoolctl==3.5.0
536536
# via scikit-learn
537537
tlviz==0.1.1
538538
# via parafac2
539-
# via sccp
539+
# via rise
540540
toolz==0.12.1
541541
# via chex
542542
# via dask
@@ -559,8 +559,8 @@ tqdm==4.66.5
559559
# via parafac2
560560
# via pyro-ppl
561561
# via pytorch-lightning
562+
# via rise
562563
# via scanpy
563-
# via sccp
564564
# via scvi-tools
565565
# via umap-learn
566566
traitlets==5.14.3

0 commit comments

Comments
 (0)