Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
167e051
add_transform_test
xingzhongyu Jan 13, 2024
1d34dcf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 13, 2024
cab672d
automl_demo
xingzhongyu Jan 13, 2024
b9037dc
Merge branch 'transform_test' of https://github.com/OmicsML/dance int…
xingzhongyu Jan 13, 2024
f181e57
change file location
xingzhongyu Jan 13, 2024
6187704
update name
xingzhongyu Jan 14, 2024
bdd3a18
add run.sh
xingzhongyu Jan 14, 2024
2dc212c
update gitignore
xingzhongyu Jan 14, 2024
f207a0d
no docker
xingzhongyu Jan 17, 2024
a68558e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 17, 2024
40a7c01
Delete useless comments
xingzhongyu Jan 17, 2024
94ac30e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 17, 2024
0c46c7f
delete useless comments
xingzhongyu Jan 17, 2024
ab6dc5f
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 17, 2024
8ffdbdf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 17, 2024
d56b317
rename step2File
xingzhongyu Jan 17, 2024
4fbfc5d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 17, 2024
2cb78e1
delete unused comments
xingzhongyu Jan 18, 2024
ba305ee
delete unused comments
xingzhongyu Jan 18, 2024
dcf2cdd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 18, 2024
cec3906
delete unused comments
xingzhongyu Jan 18, 2024
2f84920
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 18, 2024
f68e181
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 18, 2024
d23b3ed
change parameter config
xingzhongyu Jan 18, 2024
6ef23a8
change import
xingzhongyu Jan 18, 2024
c488030
change import
xingzhongyu Jan 18, 2024
f0abdfd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 18, 2024
96a3cd9
delete about singularity
xingzhongyu Jan 18, 2024
5eddbe4
merge_head
xingzhongyu Jan 18, 2024
1b332ef
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 18, 2024
a5f3004
delete scheduler
xingzhongyu Jan 18, 2024
a33662e
recover file
xingzhongyu Jan 18, 2024
6d83095
delete sh
xingzhongyu Jan 18, 2024
2345c3a
update test
xingzhongyu Jan 18, 2024
8606b4a
Delete web-variables.env
xingzhongyu Jan 18, 2024
2c703ce
global pipline2fun_dict
xingzhongyu Jan 19, 2024
9e1c515
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
be10779
add config.py
xingzhongyu Jan 19, 2024
f312d01
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
0ea8574
add step3_fun.py
xingzhongyu Jan 19, 2024
f324e63
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
1d91bcb
update wandb _step2
xingzhongyu Jan 19, 2024
00c1da0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
583838d
update wandb_step2.py
xingzhongyu Jan 19, 2024
87bbe1d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
57e6cde
add decorator
xingzhongyu Jan 19, 2024
060e022
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
87b9acd
ignore test.py
xingzhongyu Jan 19, 2024
d3a5e15
rename file
xingzhongyu Jan 19, 2024
4ea38e3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
9254078
update import
xingzhongyu Jan 19, 2024
7c31cac
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
4005cc7
rename file
xingzhongyu Jan 19, 2024
9b5d1b0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
f69fbc0
rename import
xingzhongyu Jan 19, 2024
68c0099
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
ed3ccc5
rename import
xingzhongyu Jan 19, 2024
36d6a36
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 19, 2024
80d2cab
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
ef0cc50
rename import
xingzhongyu Jan 19, 2024
13855d1
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 19, 2024
29a332c
rename file
xingzhongyu Jan 19, 2024
2cb837f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
72a6f8e
delete test.py
xingzhongyu Jan 19, 2024
84fb98a
add readme.txt
xingzhongyu Jan 19, 2024
2ab442e
update readme.txt
xingzhongyu Jan 19, 2024
0be4080
update step2.py
xingzhongyu Jan 19, 2024
6840345
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
26a7388
update step2_config.py
xingzhongyu Jan 19, 2024
5e15e77
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
9a75183
update step2_config.py
xingzhongyu Jan 19, 2024
6b8ae88
update step2_config.py
xingzhongyu Jan 19, 2024
0f06908
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
d663f04
update step2_config.py
xingzhongyu Jan 19, 2024
387f6de
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
99f35aa
update step3_config.py
xingzhongyu Jan 19, 2024
02b57d9
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 19, 2024
0e43aea
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
397a5ea
update step2.py
xingzhongyu Jan 19, 2024
db6b984
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
d06cb02
add track in wandb
xingzhongyu Jan 19, 2024
d395469
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
efba6df
update track in wandb
xingzhongyu Jan 19, 2024
64f7738
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
df455b2
update step2.py
xingzhongyu Jan 19, 2024
15068d0
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 19, 2024
14b5d4b
update step2
xingzhongyu Jan 19, 2024
04d5782
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
b713abd
update step2
xingzhongyu Jan 19, 2024
44e3acf
update step2
xingzhongyu Jan 19, 2024
1ef1190
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
a94cf4c
update step2
xingzhongyu Jan 19, 2024
e579344
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
07301a8
update step3
xingzhongyu Jan 19, 2024
a7cac2f
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 19, 2024
061a659
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
6b5c635
rename example.py
xingzhongyu Jan 19, 2024
98d96fe
add todo
xingzhongyu Jan 19, 2024
5909a9d
add comments
xingzhongyu Jan 19, 2024
a4459b2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
f35022f
update func
xingzhongyu Jan 19, 2024
6a9e621
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
1f349a7
add comment
xingzhongyu Jan 19, 2024
ddb460a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
88f1e65
add comment
xingzhongyu Jan 19, 2024
d926a8f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2024
057fea8
rename file
xingzhongyu Jan 20, 2024
96fe34a
step2 cluster
xingzhongyu Jan 20, 2024
ba32644
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 20, 2024
56e1291
update step2 cluster
xingzhongyu Jan 20, 2024
93ad2f0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 20, 2024
404763e
change location
xingzhongyu Jan 21, 2024
1136795
update comment
xingzhongyu Jan 21, 2024
9e8fe52
add step3 cluster
xingzhongyu Jan 21, 2024
557a9a3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 21, 2024
1c62d3c
update step3 cluster
xingzhongyu Jan 21, 2024
64ef717
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 21, 2024
0bf93bd
register imputation
xingzhongyu Jan 21, 2024
af396af
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 21, 2024
2f6ed9e
try step2 imputation
xingzhongyu Jan 21, 2024
48b1776
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 21, 2024
7cecced
add required_elements
xingzhongyu Jan 21, 2024
0bf2301
add step2 imputation config
xingzhongyu Jan 21, 2024
c5e2003
update step2 imputation
xingzhongyu Jan 22, 2024
fe8bc3a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 22, 2024
cc500a9
update step2 imputation
xingzhongyu Jan 22, 2024
6d41415
update step2 imputation
xingzhongyu Jan 22, 2024
c86cfbb
update step3 imputation
xingzhongyu Jan 22, 2024
b961e17
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 22, 2024
1574d5b
update step3 imputation
xingzhongyu Jan 22, 2024
95057fb
normalize code
xingzhongyu Jan 23, 2024
e2b53a3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 23, 2024
bf585f7
normalize code
xingzhongyu Jan 23, 2024
3b55878
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 23, 2024
e6dd690
normalize code
xingzhongyu Jan 23, 2024
484faa8
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 23, 2024
24424c7
normalize code
xingzhongyu Jan 23, 2024
455f7ae
add comment
xingzhongyu Jan 23, 2024
de9ac93
add comment
xingzhongyu Jan 23, 2024
a853a21
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 23, 2024
451b135
add comment
xingzhongyu Jan 23, 2024
c8124cb
add comment
xingzhongyu Jan 23, 2024
7b4ea0c
add comment
xingzhongyu Jan 23, 2024
5a75e61
add comment
xingzhongyu Jan 23, 2024
716576b
move automl file
xingzhongyu Jan 23, 2024
9aa8fa2
update import
xingzhongyu Jan 23, 2024
0b663f4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 23, 2024
ea9275e
add warning message
xingzhongyu Jan 23, 2024
8f74151
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 23, 2024
c3cd191
add warning message
xingzhongyu Jan 23, 2024
435366b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 23, 2024
05c808b
add warning message
xingzhongyu Jan 23, 2024
20136dd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 23, 2024
93d3a81
normalize code
xingzhongyu Jan 25, 2024
6ec53fc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 25, 2024
8af1e27
normalize code
xingzhongyu Jan 25, 2024
d6343d9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 25, 2024
904261e
don't delete
xingzhongyu Jan 25, 2024
a613d47
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 25, 2024
ee61d25
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 25, 2024
82aa0f9
add gitignore
xingzhongyu Jan 25, 2024
432d752
add comment
xingzhongyu Jan 25, 2024
4f93d76
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 25, 2024
32380e6
add comment
xingzhongyu Jan 25, 2024
4439dd2
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 25, 2024
5b58943
add comment
xingzhongyu Jan 25, 2024
fa31616
add step3 example
xingzhongyu Jan 26, 2024
761a2e3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 26, 2024
dcf41bf
step3 example
xingzhongyu Jan 26, 2024
75f0533
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 26, 2024
aeac462
step3 example
xingzhongyu Jan 26, 2024
bec59c1
step3 example
xingzhongyu Jan 26, 2024
612cece
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 26, 2024
d982ece
step3 example
xingzhongyu Jan 28, 2024
59ac742
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 28, 2024
715c0c6
rename example pipeline tuning config
RemyLau Jan 28, 2024
bf47d30
move tuning params setting to 'params_to_tune'
RemyLau Jan 28, 2024
7feb79a
minor fixes and edits
RemyLau Jan 28, 2024
6310879
step3 example
xingzhongyu Jan 29, 2024
0cbaf44
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 29, 2024
4a90367
step3 example
xingzhongyu Jan 29, 2024
d2fe0c7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 29, 2024
87ea837
step3 example
xingzhongyu Jan 29, 2024
77a7e8f
Merge remote-tracking branch 'origin/transform_test' into transform_test
xingzhongyu Jan 29, 2024
3eb9ed6
step3 example
xingzhongyu Jan 30, 2024
cd2cba9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion dance/transforms/graph/resept_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ class RESEPTGraph(BaseTransform):

"""

def __init__(self, fiducial_diameter_fullres=144.56835055243283, tissue_hires_scalef=0.150015, **kwargs):
def __init__(self, fiducial_diameter_fullres=144.56835055243283, tissue_hires_scalef=0.150015,
n_neighbors: int = 15, **kwargs):
super().__init__(**kwargs)
self.fiducial_diameter_fullres = fiducial_diameter_fullres
self.tissue_hires_scalef = tissue_hires_scalef
self.n_neighbors = n_neighbors

def scale_to_RGB(self, channel, truncated_percent):
truncated_down = np.percentile(channel, truncated_percent)
Expand All @@ -34,6 +36,7 @@ def scale_to_RGB(self, channel, truncated_percent):

def __call__(self, data: Data) -> Data:
xy_pixel = data.get_feature(return_type="numpy", channel="spatial_pixel", channel_type="obsm")
sc.pp.neighbors(data.data, n_neighbors=self.n_neighbors)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neighbors need to be calculated in advance

sc.tl.umap(data.data, n_components=3)
X_transform = data.get_feature(return_type="numpy", channel="X_umap", channel_type="obsm")
X_transform[:, 0] = self.scale_to_RGB(X_transform[:, 0], 100)
Expand Down
2 changes: 1 addition & 1 deletion dance/transforms/sc3_feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ def __call__(self, data):
sim_matrix_all = np.array(sim_matrix_all)
sim_matrix_mean = np.mean(sim_matrix_all, axis=0)

data.data.uns[self.out] = sim_matrix_mean
data.data.obsm[self.out] = sim_matrix_mean
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to obsm

return data
Loading