diff --git a/demos/cosmx_io/Snakefile b/demos/cosmx_io/Snakefile new file mode 100644 index 00000000..e69de29b diff --git a/demos/cosmx_io/config.yml b/demos/cosmx_io/config.yml new file mode 100644 index 00000000..750ff227 --- /dev/null +++ b/demos/cosmx_io/config.yml @@ -0,0 +1,2 @@ +output: +- combat_2022_cell.h5ad.zarr \ No newline at end of file diff --git a/demos/mcmicro_io/Snakefile b/demos/mcmicro_io/Snakefile new file mode 100644 index 00000000..e69de29b diff --git a/demos/merfish/Snakefile b/demos/merfish/Snakefile new file mode 100644 index 00000000..e69de29b diff --git a/demos/mibitof/Snakefile b/demos/mibitof/Snakefile new file mode 100644 index 00000000..e69de29b diff --git a/demos/steinbock_io/Snakefile b/demos/steinbock_io/Snakefile new file mode 100644 index 00000000..e69de29b diff --git a/demos/toy/Snakefile b/demos/toy/Snakefile new file mode 100644 index 00000000..7c70549d --- /dev/null +++ b/demos/toy/Snakefile @@ -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} + ''' diff --git a/demos/toy/config.yml b/demos/toy/config.yml new file mode 100644 index 00000000..02761117 --- /dev/null +++ b/demos/toy/config.yml @@ -0,0 +1,4 @@ +output: +- toy.zarr +- cosmx_io.zarr +- mcmicro_io.zarr diff --git a/demos/visium/Snakefile b/demos/visium/Snakefile new file mode 100644 index 00000000..e69de29b diff --git a/demos/visium_associated_xenium_io/Snakefile b/demos/visium_associated_xenium_io/Snakefile new file mode 100644 index 00000000..89b1cb66 --- /dev/null +++ b/demos/visium_associated_xenium_io/Snakefile @@ -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} + ''' diff --git a/demos/visium_io/Snakefile b/demos/visium_io/Snakefile new file mode 100644 index 00000000..a4d12ea4 --- /dev/null +++ b/demos/visium_io/Snakefile @@ -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} + ''' diff --git a/demos/xenium_rep1_io/Snakefile b/demos/xenium_rep1_io/Snakefile new file mode 100644 index 00000000..e69de29b diff --git a/demos/xenium_rep2_io/Snakefile b/demos/xenium_rep2_io/Snakefile new file mode 100644 index 00000000..e69de29b