-
Notifications
You must be signed in to change notification settings - Fork 370
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
Adds a buffer to the index stream #1348
Conversation
…eading the index over a network possible, fixes #1175
@lbergelson can you take a look? |
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.
Two comments, do as you like and then 👍
@@ -448,6 +484,7 @@ public IntervalList getLociToGenotype(final Collection<Fingerprint> fingerprints | |||
// Now go through the data at each locus and figure stuff out! | |||
for (final SamLocusIterator.LocusInfo info : iterator) { | |||
|
|||
log.debug("At locus " + info.toString()); |
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.
This will do a pointless string combine at each position which could be kind of expensive if you don't want this output. If there's a way check if we're in debug mode first than I would test that before doing the debug command.
@@ -402,7 +438,7 @@ public IntervalList getLociToGenotype(final Collection<Fingerprint> fingerprints | |||
final SamReader in = SamReaderFactory.makeDefault() | |||
.enable(SamReaderFactory.Option.CACHE_FILE_BASED_INDEXES) | |||
.referenceSequence(referenceFasta) | |||
.open(samFile); | |||
.open(samFile, null, seekableChannelFunction); |
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.
I would add a comment here describing why this is needed and pointing at the htsjdk issue number ( is there one... there should be.)
…e an unrelated failure...
This makes reading the index over a network possible, which in turn, fixes #1175.
Checklist (never delete this)
Content
Review
For more detailed guidelines, see https://github.com/broadinstitute/picard/wiki/Guidelines-for-pull-requests