-
Notifications
You must be signed in to change notification settings - Fork 245
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
VariantContextBuilder does not perform a deep copy #255
Comments
attributes are protected against this, I guess filters need the same On Tue, May 19, 2015 at 3:13 AM, Daniel Cameron notifications@github.com
|
Yes, attributesCanBeModified does look pretty obvious when reviewing the code again. Depending on when GenotypesContext is/is not immutable, genotypes might also be an issue. |
also include a test without calling make():
|
this is actually worse. I can get it to fail on filters (as reported) attributes, genotypes and alleles.... |
submitting a PR with tests for comments. |
When using VariantContextBuilder to create a new variant based on an existing variant, the underlying objects and collections are not copied nor are they wrapped with copy-on-write semantics. Making changes to a copied variant change the original variant as well.
Failing unit test for VariantContextUnitTest.java
The text was updated successfully, but these errors were encountered: