Skip to content

Rescore with additional suffix#180

Draft
torbjorgen wants to merge 8 commits intomainfrom
rescoring_with_additional_suffix
Draft

Rescore with additional suffix#180
torbjorgen wants to merge 8 commits intomainfrom
rescoring_with_additional_suffix

Conversation

@torbjorgen
Copy link
Contributor

@torbjorgen torbjorgen commented Jul 3, 2025

This PR contains patches to allow genmod to "rescore" and add rank scores with [SUFFIX] to a prescored VCF.

See added test for usage.

Executing tests:

docker run -i -l genmod-test genmod/test -v -s -o log_cli=true -k test_rescore_with_annotation_suffix 2>&1

This field was missing from the INFO header which broke the scoring step
(error related to plugin not defined in VCF header).

The introduced header definition is copied from
test_vcf_annotated.vcf file.

Signed-off-by: Tor Björgen <tor.bjorgen@scilifelab.se>
…s to VCF fixture

Signed-off-by: Tor Björgen <tor.bjorgen@scilifelab.se>
This is a better option than the default logging module
since it provides process level insight as well as
prints logging output to stdout/err.
Errors in run method is not visible on stdout/err
by default. Log error and stacktrace.

Signed-off-by: Tor Björgen <tor.bjorgen@scilifelab.se>
When subprocess compound scorers fails and stops decreasing
semaphore counter, while main process is in queue join()
waiting for completion, we have a deadlock.

Avoid this situation by checking subprocess states
before joining on queue so that processing can be
aborted properly and errors made visible.

Signed-off-by: Tor Björgen <tor.bjorgen@scilifelab.se>
@torbjorgen torbjorgen force-pushed the rescoring_with_additional_suffix branch 3 times, most recently from 01683b0 to 3a74cba Compare July 3, 2025 10:37
This patch adds functionality to rescore a VCF
(potentially with a different score config)
and append the scoring results to the VCF where
the score annotations are suffixed.

Signed-off-by: Tor Björgen <tor.bjorgen@scilifelab.se>
Signed-off-by: Tor Björgen <tor.bjorgen@scilifelab.se>
Signed-off-by: Tor Björgen <tor.bjorgen@scilifelab.se>
@torbjorgen torbjorgen force-pushed the rescoring_with_additional_suffix branch from 3a74cba to bd7bdbd Compare July 3, 2025 10:59
@torbjorgen torbjorgen requested review from jemten and ramprasadn July 3, 2025 11:01
@torbjorgen torbjorgen requested a review from peterpru November 4, 2025 13:28
@torbjorgen
Copy link
Contributor Author

This is the genmod _suffix branch we talked about in the RDDS meeting today: @jemten @peterpru @ramprasadn

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.

1 participant