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

Global configuration item not always being used #736

Open
wlymanambry opened this issue Apr 12, 2024 · 0 comments
Open

Global configuration item not always being used #736

wlymanambry opened this issue Apr 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wlymanambry
Copy link

Describe the bug
I set a global_config setting like:

global_config.normalizer.shuffle_direction = 5

I then call assembly_mapper:
variant_mapper: assemblymapper.AssemblyMapper = assemblymapper.AssemblyMapper(
connection,
assembly_name="GRCh37",
alt_aln_method="splign",
normalize=1,
prevalidation_level="INTRINSIC",
)

with a print statement, I can see that this config value is set correctly here in assembly mapper:
image

But when the Normalizer class is initialized, it is pulling whatever value is in the _data/defaults.ini file (and I'm not sure why)

A print here shows this is '3' instead of the expected 5 value that was set:
image

To Reproduce
Described above

Expected behavior
For this configuration value to be set globally

@jsstevenson jsstevenson added the bug Something isn't working label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants