Skip to content

Add option for functional analysis to RawR#265

Merged
timrozday-mgnify merged 4 commits intomainfrom
rawr-functional
Feb 25, 2026
Merged

Add option for functional analysis to RawR#265
timrozday-mgnify merged 4 commits intomainfrom
rawr-functional

Conversation

@timrozday-mgnify
Copy link
Contributor

  1. Added a user option for functional analysis
  2. Checked that tests for functional profile results ingestion are in place (they already were)

Copy link
Member

@SandyRogers SandyRogers left a comment

Choose a reason for hiding this comment

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

Thanks @timrozday-mgnify !
Could we have one more (can be very small) e2e test where functional annotation flag is False, and a change like generate_fake_rawreads_pipeline_results(make_functional: bool = False) just to ensure the whole flow finishes happily without pfam? E.g. to check import_completed_analyses etc continue to be happy with missing functions. It looks like the logical flow should currently be fine, but a small copy-paste test just to make sure the flow finishes successfully with taxonomies but no pfams in the Analysis.annotations would be a good safeguard against future regression.

httpx_mock.add_response(
url=f"{EMG_CONFIG.ena.portal_search_api}?"
f"result=read_run"
f"&query=%22%28%28study_accession={study_accession}+OR+secondary_study_accession={study_accession}%29%20AND%20library_strategy=WGS%29%22"
Copy link
Member

Choose a reason for hiding this comment

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

We need to find a better way to mock these things.. any minor changes and this breaks.

Copy link
Member

Choose a reason for hiding this comment

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

True – I think the best place for that would be a helper in v3 of ena-api-handler... added to JIRA as subtask EMG-9400.

Copy link
Member

@mberacochea mberacochea left a comment

Choose a reason for hiding this comment

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

It looks good.. one thing I'm not sure about is that on the tests the httpx mocks are optional

Copy link
Member

@mberacochea mberacochea left a comment

Choose a reason for hiding this comment

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

:shipit:

@timrozday-mgnify timrozday-mgnify merged commit 48c6069 into main Feb 25, 2026
2 checks passed
@timrozday-mgnify timrozday-mgnify deleted the rawr-functional branch February 25, 2026 14:20
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.

3 participants