Skip to content

Commit

Permalink
Add regix test script
Browse files Browse the repository at this point in the history
  • Loading branch information
agitter committed Nov 12, 2021
1 parent 86c1d30 commit 37d672d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
5 changes: 3 additions & 2 deletions data1/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# ESC to Endoderm Differentiation Dataset
This directory contains the following files related to the ESC to Endoderm Differentiation dataset.

- **gene_list.mat:** list of 100 genes in the dataset.
- **gene_list.mat:** list of the names of the 100 genes in the dataset.
- **X_SCODE_data.mat:** Pre-processed version of expression data corresponding to the genes in gene_list.mat from 356 pseudotime-ordered cells.
- **X_BranchTest.mat:** An alternative version of the expression data that is used only for SINGE test cases.
- **X_BranchTest.mat:** An alternative version of the expression data that is used only for SINGE test cases with branching processes.
- **X_regix_test.mat:** An alternative version of the expression data that is used only for SINGE test cases with regulator indices.

The sources to cite for this dataset are:
- [Matsumoto et al. 2017](https://academic.oup.com/bioinformatics/article/33/15/2314/3100331), [dataset](https://github.com/hmatsu1226/SCODE/tree/master/data)
Expand Down
2 changes: 1 addition & 1 deletion tests/standalone_branching_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ reducedhyperparams=tests/reduced_hyperparameters.txt
cat $hyperparams | sed -n '3p' > $reducedhyperparams

# Run SINGE on the example data and inspect the output
echo Testing SINGE standalone mode in Dockerized SINGE.sh
echo Testing SINGE standalone mode in Dockerized SINGE.sh with a branching dataset
output=branching_output

docker run -v $(pwd):/SINGE -w /SINGE agitter/singe:tmp \
Expand Down
19 changes: 19 additions & 0 deletions tests/standalone_regix_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
# Run SINGE on a dataset with regulator indices specified in standalone mode using the Docker image
# The regix list is [41, 42] which corresponds to genes SIX1 and RARG
# Only those two genes should have outgoing edges and non-zero influence scores.
set -o errexit

# Run SINGE on the example data and inspect the output
echo Testing SINGE standalone mode in Dockerized SINGE.sh with regulator indices
hyperparams=tests/example_hyperparameters.txt
output=regix_output

docker run -v $(pwd):/SINGE -w /SINGE agitter/singe:tmp \
standalone data1/X_regix_test.mat data1/gene_list.mat $output $hyperparams

ls $output -l

# Run the tests to evaluate the SINGE outputs from the standalone script
docker run -v $(pwd):/SINGE -w /SINGE --entrypoint "/bin/bash" agitter/singe:tmp -c \
"source ~/.bashrc; conda activate singe-test; tests/compare_example_output.sh $output tests/reference/regix"

0 comments on commit 37d672d

Please sign in to comment.