Skip to content

Alternative split api - #97

Merged
rcannood merged 4 commits into
alternative_splitfrom
alternative_split_api
Aug 12, 2025
Merged

Alternative split api#97
rcannood merged 4 commits into
alternative_splitfrom
alternative_split_api

Conversation

@LuLeom

@LuLeom LuLeom commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

Describe your changes

The metric component now correctly fetches integrated_left and integrated_right and enables correct unit testing in src/metrics

However this won't probably work in a full pipeline run, as src/api/comp_method.yaml still expects a single file as output

Checklist before requesting a review

  • I have performed a self-review of my code

  • Check the correct box. Does this PR contain:

    • Breaking changes
    • New functionality
    • Major changes
    • Minor changes
    • Bug fixes
  • Proposed changes are described in the CHANGELOG.md

  • CI Tests succeed and look good!

@LuLeom
LuLeom requested review from ghar1821, lazappi and rcannood August 7, 2025 09:25

@lazappi lazappi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It looks like there are some issues with the configs in the tests. Please see if you can fix those.

Comment thread src/api/comp_metric.yaml Outdated
@lazappi

lazappi commented Aug 8, 2025

Copy link
Copy Markdown
Member

However this won't probably work in a full pipeline run, as src/api/comp_method.yaml still expects a single file as output

Should this API be updated then?

@ghar1821

ghar1821 commented Aug 8, 2025

Copy link
Copy Markdown
Contributor

@lazappi, the comp_method.yaml file will have problem as it is also referring to the "left" version of the input file only. But i think this is ok as the idea is to run the method twice in the main.nf file, one with the "left" version while the other with the "right" version.

So running viash test on any method will only run the method once and that is on the "left" version of the input file.

@rcannood rcannood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@rcannood
rcannood merged commit 54eade3 into alternative_split Aug 12, 2025
5 checks passed
@rcannood
rcannood deleted the alternative_split_api branch August 12, 2025 06:54
rcannood added a commit that referenced this pull request Aug 12, 2025
* adapt api files

* remove file_validation

* fix label

* update fields

* update fields

* update raw dataset processing

* update file paths

* fix test resources script

* update data processor

* fix process datasets

* simplify script

* fix control method no_integration

* add goal batch to uns

* update process_dataset

* Added .uns["goal_batch"] in the schema

* update scripts and workflows

* Implemented control method perfect integration, remove old control methods perfect validation horizontal/vertical

* fix perfect_integration split

* fix perfect_integration split (2)

* Fix `get_obs_var_for_integrated`

* update get obs and var function for R

* Update helper_functions.R

* Update file_integrated.yaml

* updated helper_functions.py

* update emd metrics

* Update file_censored.yaml

* fixed average_batch_r2.

* update emd to check the batch label for left and right

* update helper function

* update cms

* Fixed bras

* update number of cores for cms

* Remove comment line

* fixed flowsom mapping similarity

* Update script.R

* Alternative split api (#97)

* Create file_integrated_right.yaml

* Rename file_integrated.yaml to file_integrated_left.yaml

* Update comp_metric.yaml

* rename left/right to split1/split2

---------

Co-authored-by: Robrecht Cannoodt <rcannood@gmail.com>

* fix api files

* update metrics

* disable some control methods and metrics

* update submodule

* remove anndata from containers

* update api files

* fix graph

* fix censored api files

* fix config file

* Update helper_functions.R

* fix config file

* update changelog

* Update script.py

* update descriptions

* allow the user to manually specify the number of cores

---------

Co-authored-by: Luqui12 <luca.leomazzi@gmail.com>
Co-authored-by: Luca Leomazzi <76624347+LuLeom@users.noreply.github.com>
Co-authored-by: Givanna Putri <givanna.h@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants