Skip to content

Commit

Permalink
adds assert in test output
Browse files Browse the repository at this point in the history
  • Loading branch information
anilthanki committed Feb 15, 2024
1 parent 5483917 commit 8a4b953
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
6 changes: 5 additions & 1 deletion tools/tertiary-analysis/scanpy/scanpy-integrate-combat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@
<param name="input_format" value="anndata"/>
<param name="output_format" value="anndata"/>
<param name="batch_key" value="louvain"/>
<output name="output_h5" file="combat.h5" ftype="h5" compare="sim_size" delta_frac="0.1"/>
<output name="output_h5" ftype="h5">
<assert_contents>
<has_h5_keys keys="layers/combat"/>
</assert_contents>
</output>
</test>
<test>
<param name="input_obj_file" value="find_cluster.h5"/>
Expand Down
6 changes: 5 additions & 1 deletion tools/tertiary-analysis/scanpy/scanpy-integrate-harmony.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@
<param name="input_format" value="anndata"/>
<param name="output_format" value="anndata"/>
<param name="batch_key" value="louvain"/>
<output name="output_h5" file="harmony.h5" ftype="h5" compare="sim_size" delta_frac="0.1"/>
<output name="output_h5" ftype="h5">
<assert_contents>
<has_h5_keys keys="obsm/X_pca_harmony"/>
</assert_contents>
</output>
</test>
<test>
<param name="input_obj_file" value="find_cluster.h5"/>
Expand Down
5 changes: 5 additions & 0 deletions tools/tertiary-analysis/scanpy/scanpy-normalise-data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ PYTHONIOENCODING=utf-8 scanpy-normalise-data
<param name="scale_factor" value="1e4"/>
<param name="save_raw" value="false"/>
<output name="output_h5" file="normalise_data.h5" ftype="h5" compare="sim_size" delta_frac="0.1"/>
<output name="output_h5" ftype="h5">
<assert_contents>
<has_h5_keys keys="var/n_cells_by_counts"/>
</assert_contents>
</output>
</test>
</tests>

Expand Down
6 changes: 5 additions & 1 deletion tools/tertiary-analysis/scanpy/scanpy-plot-trajectory.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ PYTHONIOENCODING=utf-8 scanpy-cli plot paga
<param name="input_obj_file" value="paga.h5"/>
<param name="input_format" value="anndata"/>
<param name="output_format" value="anndata"/>
<output name="output_h5" file="plotted_paga.h5" ftype="h5" compare="sim_size" delta_frac="0.1"/>
<output name="output_h5" ftype="h5">
<assert_contents>
<has_h5_keys keys="uns/louvain_colors"/>
</assert_contents>
</output>
<output name="output_png" file="paga_compare.png" ftype="png" compare="sim_size" delta_frac="0.1"/>
</test>
</tests>
Expand Down

0 comments on commit 8a4b953

Please sign in to comment.