Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating tools/flexynesis from version 0.2.10 to 0.2.12 #1563

Merged
merged 3 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 47 additions & 7 deletions tools/flexynesis/flexynesis.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<option value="RandomForest">RandomForest</option>
<option value="SVM">SVM</option>
<option value="RandomSurvivalForest">RandomSurvivalForest</option>
<option value="XGBoost">XGBoost</option>
</param>
<when value="DirectPred"/>
<when value="GNN">
Expand All @@ -133,6 +134,7 @@
<when value="RandomForest"/>
<when value="SVM"/>
<when value="RandomSurvivalForest"/>
<when value="XGBoost"/>
</conditional>
<param argument="--target_variables" type="text" label="Target variables" help="Which variables in 'clin.csv' to use for predictions, comma-separated if multiple.">
<sanitizer invalid_char="">
Expand Down Expand Up @@ -201,7 +203,9 @@
</repeat>
<conditional name="training_type">
<param name="model" value="s_train"/>
<param name="model_class" value="DirectPred"/>
<conditional name="model_class">
<param name="model_class" value="DirectPred"/>
</conditional>
<param name="target_variables" value="Erlotinib"/>
</conditional>
<param name="hpo_iter" value="1"/>
Expand Down Expand Up @@ -256,7 +260,9 @@
<param name="assay_main" value="bar"/>
<conditional name="training_type">
<param name="model" value="s_train"/>
<param name="model_class" value="DirectPred"/>
<conditional name="model_class">
<param name="model_class" value="DirectPred"/>
</conditional>
<param name="target_variables" value="Erlotinib"/>
</conditional>
<param name="hpo_iter" value="1"/>
Expand Down Expand Up @@ -311,7 +317,9 @@
</repeat>
<conditional name="training_type">
<param name="model" value="s_train"/>
<param name="model_class" value="DirectPred"/>
<conditional name="model_class">
<param name="model_class" value="DirectPred"/>
</conditional>
<param name="target_variables" value="Irinotecan"/>
</conditional>
<param name="hpo_iter" value="1"/>
Expand Down Expand Up @@ -463,7 +471,9 @@
</repeat>
<conditional name="training_type">
<param name="model" value="s_train"/>
<param name="model_class" value="GNN"/>
<conditional name="model_class">
<param name="model_class" value="GNN"/>
</conditional>
<param name="gnn_conv_type" value="GC"/>
<param name="string_organism" value="9606"/>
<param name="string_node_name" value="gene_name"/>
Expand Down Expand Up @@ -505,9 +515,9 @@
</element>
<element name="job.stats">
<assert_contents>
<has_text_matching expression="DirectPred,Erlotinib,numerical,mse,"/>
<has_text_matching expression="DirectPred,Erlotinib,numerical,r2,"/>
<has_text_matching expression="DirectPred,Erlotinib,numerical,pearson_corr,"/>
<has_text_matching expression="GNN,Erlotinib,numerical,mse,"/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did it change from DirectPred to GNN?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is correct actually. In the previous test <param name="model_class" value="GNN"/> was not enclosed within the <conditional name="model_class"> and </conditional>, and instead of GNN, the default model (DirectPred) was called.

The other tests are correct.

<has_text_matching expression="GNN,Erlotinib,numerical,r2,"/>
<has_text_matching expression="GNN,Erlotinib,numerical,pearson_corr,"/>
</assert_contents>
</element>
</output_collection>
Expand Down Expand Up @@ -552,6 +562,36 @@
</element>
</output_collection>
</test>
<test>
<param name="non_commercial_use" value="True"/>
<param name="train_clin" value="train/clin" ftype="csv"/>
<param name="test_clin" value="test/clin" ftype="csv"/>
<param name="train_omics_main" value="train/gex" ftype="csv"/>
<param name="test_omics_main" value="test/gex" ftype="csv"/>
<param name="assay_main" value="bar"/>
<repeat name="omics">
<param name="train_omics" value="train/cnv" ftype="csv"/>
<param name="test_omics" value="test/cnv" ftype="csv"/>
<param name="assay" value="foo"/>
</repeat>
<conditional name="training_type">
<param name="model" value="s_train"/>
<conditional name="model_class">
<param name="model_class" value="XGBoost"/>
</conditional>
<param name="target_variables" value="Erlotinib"/>
</conditional>
<param name="hpo_iter" value="1"/>
<output_collection name="results" type="list">
<element name="job.stats">
<assert_contents>
<has_text_matching expression="XGBoostRegressor,Erlotinib,numerical,mse,"/>
<has_text_matching expression="XGBoostRegressor,Erlotinib,numerical,r2,"/>
<has_text_matching expression="XGBoostRegressor,Erlotinib,numerical,pearson_corr,"/>
</assert_contents>
</element>
</output_collection>
</test>
</tests>
<help>
.. class:: warningmark
Expand Down
2 changes: 1 addition & 1 deletion tools/flexynesis/macros.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<macros>
<token name="@TOOL_VERSION@">0.2.10</token>
<token name="@TOOL_VERSION@">0.2.12</token>
<token name="@VERSION_SUFFIX@">0</token>
<token name="@PROFILE@">24.1</token>
<xml name="requirements">
Expand Down
Loading