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

Added ability to override THEANO_FLAGS environment variable in gCNV tools. #6244

Merged
merged 1 commit into from
Nov 7, 2019

Conversation

samuelklee
Copy link
Contributor

@samuelklee samuelklee commented Nov 4, 2019

Closes #6235

This PR allows users to more easily clobber individual theano flags. This can be used to change the location of the theano compilation directory (see the above issue and #4782 for context). These flags are set upon import of the theano module; see http://deeplearning.net/software/theano/library/config.html for details.

This solution is a little hacky, hence the code duplication. Ideally, we'd be able to specify this directory (and potentially other flags) as a parameter to the tools. As discussed with @cmnbroad, probably the cleanest solution would be to modify the PythonScriptExecutor to allow environment variables to be specified, e.g. via ProcessSettings. This solution would also cover the initial import of the gcnvkernel package for validation purposes, rather than only the imports in the resource scripts modified in this PR.

@samuelklee samuelklee force-pushed the sl_theano_flags_redux branch from cd75131 to 5d00fe7 Compare November 4, 2019 22:27
@samuelklee samuelklee requested a review from mwalker174 November 5, 2019 19:19
@samuelklee
Copy link
Contributor Author

@mwalker174 this branch is probably ready for review. Thanks!

Copy link
Contributor

@mwalker174 mwalker174 left a comment

Choose a reason for hiding this comment

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

Thanks this looks good!

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.

ramdom BUGS for germline copy number variants calling with GATK 4. PythonScriptExecutorException
2 participants