-
Notifications
You must be signed in to change notification settings - Fork 602
No need to sort variants in HaplotypeCallerSpark. #5909
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -184,11 +184,10 @@ private static void processAssemblyRegions( | |
|
||
final JavaRDD<VariantContext> variants = rdd.mapPartitions(assemblyFunction(header, referenceFileName, hcArgsBroadcast, annotatorEngineBroadcast)); | ||
|
||
variants.cache(); // without caching, computations are run twice as a side effect of finding partition boundaries for sorting | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. huh, does this have to do with the change in sorting? what sort of difference in runtime does this branch have? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The cache call was added to avoid repeat work. I haven't tried re-running benchmarks yet but I suspect it will give some speed up. |
||
try { | ||
VariantsSparkSink.writeVariants(ctx, output, variants, hcEngine.makeVCFHeader(header.getSequenceDictionary(), new HashSet<>()), | ||
hcArgs.emitReferenceConfidence == ReferenceConfidenceMode.GVCF, new ArrayList<Number>(hcArgs.GVCFGQBands), hcArgs.standardArgs.genotypeArgs.samplePloidy, | ||
0, createOutputVariantIndex); | ||
0, createOutputVariantIndex, false); | ||
} catch (IOException e) { | ||
throw new UserException.CouldNotCreateOutputFile(output, "writing failed", e); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Javadoc this method