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

Ensure only MuTect 1.1.5+ is used when doing tumor analysis #104

Merged
merged 5 commits into from
Sep 13, 2013
Merged

Ensure only MuTect 1.1.5+ is used when doing tumor analysis #104

merged 5 commits into from
Sep 13, 2013

Conversation

lbeltrame
Copy link
Contributor

This pull request implements a version check that raises a ValueError in case MuTect's version is less than 1.1.5 (1.1.4 had Java incompatibilities), and removes the "error hacks".

Unfortunately, due to an issue (broadinstitute/mutect#5) MuTect doesn't properly report its version, so a rather stupid hack is used instead.

Please review and comment on whether this is a good approach.

it reports the GATK version it is based on instead: until this is
fixed, we use a hack knowing that 1.1.4 is based on GATK 2.2 and
1.1.5 on GATK 2.7.
if self._mutect_version is None:
self._set_default_versions(self._config)
if self._mutect_version is not None:
return self._mutect_version
Copy link
Member

Choose a reason for hiding this comment

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

You could skip the explicit version checking of the jar and just use the value generated in _set_default_versions(). This is derived from the jar name, which is just another hack but at least we're only hacking the version in one way. Then I'd just return assert that _mutect_version is not None and return that value. We can add an explicit version check if they add it in the future.

@chapmanb
Copy link
Member

Luca;
Thanks much. Generally this looks great. I added a couple of comments to remove some of the version guessing code and have a more general version check. Happy to merge this in once you have a chance to look at those. Thanks again.

@lbeltrame
Copy link
Contributor Author

As you requested, I removed the running and relied only on the cached version. Let me know if this is what you meant.

chapmanb added a commit that referenced this pull request Sep 13, 2013
Ensure only MuTect 1.1.5+ is used when doing tumor analysis
@chapmanb chapmanb merged commit e69a32f into bcbio:master Sep 13, 2013
chapmanb added a commit that referenced this pull request Sep 13, 2013
@chapmanb
Copy link
Member

Luca -- looks great. Thanks again for adding this in.

@lbeltrame lbeltrame deleted the mutect-version-fix branch September 13, 2013 12:18
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.

2 participants