Skip to content

Commit 95829de

Browse files
rcannoodghar1821
andauthored
Add new dataset (#106)
* add dataset processing script * fix reference * add goal batch * update script for cll dataset * update changelog --------- Co-authored-by: Givanna Putri <givanna.h@gmail.com>
1 parent 680f9e9 commit 95829de

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464

6565
* Added Seurat rPCA (PR #95).
6666

67+
* Added processing scripts for CLL dataset (PR #106).
6768

6869
## MAJOR CHANGES
6970

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
# get the root of the directory
4+
REPO_ROOT=$(git rev-parse --show-toplevel)
5+
6+
# ensure that the command below is run from the root of the repository
7+
cd "$REPO_ROOT"
8+
9+
set -e
10+
11+
RAW_DIR=resources_raw/human_cll_mass_cytometry/
12+
DATASET_ID=human_cll_mass_cytometry
13+
OUTPUT_DIR=resources/datasets_raw/$DATASET_ID/
14+
15+
mkdir -p $OUTPUT_DIR
16+
17+
# create raw dataset files
18+
python << HERE
19+
import anndata as ad
20+
21+
adata = ad.read_h5ad("$RAW_DIR/human_cll_mass_cytometry.h5ad")
22+
23+
# make sure the output is compressed
24+
adata.write_h5ad("$OUTPUT_DIR/common_dataset.h5ad", compression='gzip')
25+
HERE
26+
27+
cat > $OUTPUT_DIR/state.yaml << HERE
28+
id: $DATASET_ID
29+
output_dataset: !file common_dataset.h5ad
30+
HERE
31+
32+
# only run this if you have access to the openproblems-data bucket
33+
aws s3 sync --profile op \
34+
resources/datasets_raw/human_cll_mass_cytometry \
35+
s3://openproblems-data/resources/task_cyto_batch_integration/datasets_raw/human_cll_mass_cytometry/ \
36+
--delete --dryrun

0 commit comments

Comments
 (0)