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

xfuse on synthetic data #40

Open
Yizhi-Zhang opened this issue Mar 24, 2022 · 3 comments
Open

xfuse on synthetic data #40

Yizhi-Zhang opened this issue Mar 24, 2022 · 3 comments

Comments

@Yizhi-Zhang
Copy link

Hello,
Thank you very much for providing this great method!
I tried to use xfuse on synthetic data, but I ran into some difficulties. How does the synthetic data look like? And how can I modify the .toml file to get the result just like that in your article? May I ask if you can provide the synthetic data in your article and the corresponding running code for xfuse?

Many thanks

@ludvb
Copy link
Owner

ludvb commented Mar 24, 2022

Hi,

The code for the synthetic data analysis lives in the synthetic-data branch. The data is generated by the dataloader, so no data files are needed. I believe the config below was used in the paper. Let me know if you run into any problems!

[xfuse]
network_depth = 4
network_width = 16
genes = []
min_counts = 1
gene_regex = ".*"

[settings]
cache_data = true
data_workers = 8

[expansion_strategy]
type = "DropAndSplit"
purge_interval = 1000

[expansion_strategy.DropAndSplit]
max_metagenes = 10

[expansion_strategy.Extra]
num_metagenes = 4
anneal_to = 1
anneal_epochs = 10000

[optimization]
batch_size = 4
epochs = 2000000
learning_rate = 0.0001
patch_size = 384

[analyses]
[analyses.synthetic]
type = "synthetic"

[analyses.synthetic.options]
num_samples = 1000
test_grid_size = 16

[slides]
[slides.control1]
data = "/tmp/"

[slides.control1.options]
repeat = 1
synthetic = true
allow_edge_clipping = false
image_noise = 0.1
reads_per_pixel = 10
reads_per_bg_pixel = 0

[slides.control2]
data = "/tmp/"

[slides.control2.options]
repeat = 1
synthetic = true
allow_edge_clipping = false
image_noise = 0.1
reads_per_pixel = 10
reads_per_bg_pixel = 0

[slides.control3]
data = "/tmp/"

[slides.control3.options]
repeat = 1
synthetic = true
allow_edge_clipping = false
image_noise = 0.1
reads_per_pixel = 10
reads_per_bg_pixel = 0

[slides.control4]
data = "/tmp/"

[slides.control4.options]
repeat = 1
synthetic = true
allow_edge_clipping = false
image_noise = 0.1
reads_per_pixel = 10
reads_per_bg_pixel = 0

[slides.control5]
data = "/tmp/"

[slides.control5.options]
repeat = 1
synthetic = true
allow_edge_clipping = false
image_noise = 0.1
reads_per_pixel = 10
reads_per_bg_pixel = 0

[slides.control6]
data = "/tmp/"

[slides.control6.options]
repeat = 1
synthetic = true
allow_edge_clipping = false
image_noise = 0.1
reads_per_pixel = 10
reads_per_bg_pixel = 0

[slides.control7]
data = "/tmp/"

[slides.control7.options]
repeat = 1
synthetic = true
allow_edge_clipping = false
image_noise = 0.1
reads_per_pixel = 10
reads_per_bg_pixel = 0

[slides.control8]
data = "/tmp/"

[slides.control8.options]
repeat = 1
synthetic = true
allow_edge_clipping = false
image_noise = 0.1
reads_per_pixel = 10
reads_per_bg_pixel = 0

[slides.control9]
data = "/tmp/"

[slides.control9.options]
repeat = 1
synthetic = true
allow_edge_clipping = false
image_noise = 0.1
reads_per_pixel = 10
reads_per_bg_pixel = 0

[slides.control10]
data = "/tmp/"

[slides.control10.options]
repeat = 1
synthetic = true
allow_edge_clipping = false
image_noise = 0.1
reads_per_pixel = 10
reads_per_bg_pixel = 0

@Yizhi-Zhang
Copy link
Author

Hi,

Thanks very much for your detailed explanation. Now I can run XFuse on synthetic data smoothly!

@ludvb
Copy link
Owner

ludvb commented Apr 12, 2022

Awesome, thanks for reporting back!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants