Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Empty file added demos/cosmx_io/Snakefile
Empty file.
2 changes: 2 additions & 0 deletions demos/cosmx_io/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
output:
- combat_2022_cell.h5ad.zarr
Empty file added demos/mcmicro_io/Snakefile
Empty file.
Empty file added demos/merfish/Snakefile
Empty file.
Empty file added demos/mibitof/Snakefile
Empty file.
Empty file added demos/steinbock_io/Snakefile
Empty file.
34 changes: 34 additions & 0 deletions demos/toy/Snakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
include: "../common.smk"
configfile: "config.yml"

# TODO: start from the real raw files
BASE_URL = "https://s3.embl.de/spatialdata/spatialdata-sandbox/{dataset}.zip"


rule all:
input:
[ (PROCESSED_DIR / f) for f in config['output'] ]


# Unzip the downloaded zip files
rule unzip_file:
input:
(RAW_DIR / "{dataset}.zip")
output:
directory(PROCESSED_DIR / "{dataset}.zarr")
shell:
"""
unzip {input} -d data/processed &&\
mv data/processed/data.zarr data/processed/{wildcards.dataset}.zarr
"""

# Download visium .zip file containing single-cell data.
rule download_data:
output:
(RAW_DIR / "{dataset}.zip")
params:
file_url=BASE_URL
shell:
'''
curl -L -o {output} {params.file_url}
'''
4 changes: 4 additions & 0 deletions demos/toy/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
output:
- toy.zarr
- cosmx_io.zarr
- mcmicro_io.zarr
Empty file added demos/visium/Snakefile
Empty file.
34 changes: 34 additions & 0 deletions demos/visium_associated_xenium_io/Snakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
include: "../common.smk"
configfile: "config.yml"

# TODO: start from the real raw files
BASE_URL = "https://s3.embl.de/spatialdata/spatialdata-sandbox/visium_associated_xenium_io.zip"


rule all:
input:
[ (PROCESSED_DIR / f) for f in config['output'] ]


# Unzip the downloaded zip files
rule unzip_file:
input:
os.path.join("data", file_name)
output:
os.path.join("data", "visium_associated_xenium_io.zip")
shell:
"""
mkdir -p {output}\
unzip {input} -d {output}\
"""

# Download visium .zip file containing single-cell data.
rule download_data:
output:
(RAW_DIR / "visium_associated_xenium_io.zip")
params:
file_url=H5AD_URL
shell:
'''
curl -L -o {output} {params.file_url}
'''
34 changes: 34 additions & 0 deletions demos/visium_io/Snakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
include: "../common.smk"
configfile: "config.yml"

# TODO: start from the real raw files
BASE_URL = "https://s3.embl.de/spatialdata/spatialdata-sandbox/visium_io.zip"


rule all:
input:
[ (PROCESSED_DIR / f) for f in config['output'] ]


# Unzip the downloaded zip files
rule unzip_file:
input:
os.path.join("data", file_name)
output:
os.path.join("data", "visium_io.zip")
shell:
"""
mkdir -p {output}\
unzip {input} -d {output}\
"""

# Download visium .zip file containing single-cell data.
rule download_data:
output:
(RAW_DIR / "visium_io.zip")
params:
file_url=H5AD_URL
shell:
'''
curl -L -o {output} {params.file_url}
'''
Empty file added demos/xenium_rep1_io/Snakefile
Empty file.
Empty file added demos/xenium_rep2_io/Snakefile
Empty file.