Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Removed deprecated VariantContextWriterFactory #756
Conversation
coveralls
commented
Nov 24, 2016
magicDGS
referenced
this pull request
Nov 28, 2016
Open
Output filenames containing the string ".bcf" result in BCF output instead of VCF #761
| - return AbstractFeatureReader.hasBlockCompressedExtension(location); | ||
| - } | ||
| - | ||
| - public static VariantContextWriter sortOnTheFly(final VariantContextWriter innerWriter, final int maxCachingStartDistance) { |
ronlevine
Nov 29, 2016
Contributor
Does sortOnTheFly need to be added to VariantContextWriterBuilder ?
magicDGS
Nov 29, 2016
Contributor
I can add these two static method, but they are just syntactic sugar for the SortingVariantContextWriter constructors. This only requires two change appearances of the following lines of code:
final VariantContextWriter sortingWriter = VariantContextWriterFactory.sortOnTheFly(writer, 1000);
...
final VariantContextWriter sortingWriter = VariantContextWriterFactory.sortOnTheFly(writer, 1000, true);for these:
final VariantContextWriter sortingWriter = new SortingVariantContextWriter(writer, 1000);
...
final VariantContextWriter sortingWriter = new SortingVariantContextWriter(writer, 1000, true);I don't think that it is necessary, because code that is using these methods should be refactored anyway. But of course, I could include it.
ronlevine
Nov 29, 2016
Contributor
@magicDGS I agree with you, no need to add it. The builder pattern should not have any static methods plus it the a VERY thin wrapper around SortingVariantContextWriter.
droazen
self-assigned this
Dec 13, 2016
|
PR in picard ready for this broadinstitute/picard#710 (tests pass) |
|
|
magicDGS commentedNov 24, 2016
•
edited
Description
Removed ancient factory for create
VariantContextWriter. Found in #707.Checklist