Skip to content

Commit

Permalink
Fix pbmc test resources after #748 (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
DriesSchaumont authored Aug 16, 2024
1 parent 9ebd2e9 commit e5c3608
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions resources_test_scripts/pbmc_1k_protein_v3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,19 @@ nextflow \
--obs_covariates sample_id \
-resume

# run integration
nextflow \
run . \
-main-script target/nextflow/workflows/integration/harmony_leiden/main.nf \
-c src/workflows/utils/labels_ci.config \
-profile docker \
--id pbmc_1k_protein_v3_mms_integration \
--input "${OUT}_mms.h5mu" \
--output "`basename $OUT`_mms.h5mu" \
--publishDir `dirname $OUT` \
--obs_covariates sample_id \
-resume

python <<HEREDOC
import mudata as mu
mudata = mu.read_h5mu("${DIR}/pbmc_1k_protein_v3_filtered_feature_bc_matrix.h5mu")
Expand Down
2 changes: 1 addition & 1 deletion src/integrate/harmonypy/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_harmonypy(run_component, tmp_path):
"--modality", "rna",
"--obsm_input", "X_pca",
"--obsm_output", "X_pca_int",
"--obs_covariates", "leiden",
"--obs_covariates", "harmony_integration_leiden_1.0",
"--output", str(output_path),
"--output_compression", "gzip"])
assert output_path.is_file()
Expand Down
4 changes: 2 additions & 2 deletions src/neighbors/bbknn/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_simple_integration(run_component, tmp_path, sample_mudata):
run_component([
"--input", str(tmp_input_path),
"--output", str(output_path),
"--obs_batch", "leiden",
"--obs_batch", "harmony_integration_leiden_1.0",
"--obsm_input", "X_pca",
"--output_compression", "gzip"
])
Expand All @@ -59,7 +59,7 @@ def test_alternative_names(run_component, tmp_path, sample_mudata):
run_component([
"--input", str(tmp_input_path),
"--output", str(output_path),
"--obs_batch", "leiden",
"--obs_batch", "harmony_integration_leiden_1.0",
"--obsm_input", "X_pca",
"--output_compression", "gzip",
"--uns_output", "my_neighbors",
Expand Down

0 comments on commit e5c3608

Please sign in to comment.