-
Notifications
You must be signed in to change notification settings - Fork 594
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
Add a native GATK implementation for 2bit references, and remove the dependency on the ADAM library #8606
Conversation
Github actions tests reported job failures from actions build 7138120890
|
…dependency on the ADAM library
84aa56a
to
504109c
Compare
private static Int2ObjectMap<Insert> consolidateInserts(final List<Insert> inserts, final IntList offsets) { | ||
final int size = inserts.size(); | ||
if (size == 0) { | ||
return Int2ObjectMaps.emptyMap(); | ||
return (Int2ObjectMap<Insert>)Int2ObjectMaps.EMPTY_MAP; |
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.
Pin fastutil to 7.0.13
and get rid of this
* @param rule Whether to merge adjacent intervals, or just overlapping intervals | ||
* @return A new list of merged disjoint intervals, sorted by start position | ||
*/ | ||
public static List<SimpleInterval> sortAndMergeIntervals(final List<SimpleInterval> raw, final IntervalMergingRule rule) { |
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.
Strongly consider adding a check enforcing a single-contig restriction
// TTCCAttgTTGTGATTTTGTGctaTTAAAATGATCAAAACANNNCCCTTAAAAATCTTAT | ||
// TCTAACCTCTCAANNNCTTTTAAAaatgaNNNATTTCAGTACAGTCGGATGCATCTGTAA | ||
// AAGATAAAAAtaTaACATTGATTAGTTTgCAAAAATAATTGTTTGACCCCAGTTAAGNga | ||
private static final GATKPath maskedTwoBitTest = new GATKPath(packageRootTestDir + "utils/reference/masked.2bit"); |
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.
Make a note of how this was created
|
||
try { | ||
// Load the raw contents of the 2bit file into a read-only in-memory ByteBuffer | ||
rawBytes = ByteBuffer.wrap(ByteStreams.toByteArray(BucketUtils.openFile(referencePath.getRawInputString()))).asReadOnlyBuffer(); |
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.
GATKPath.getInputStream()
// The total number of sequences in the file | ||
private int sequenceCount; | ||
|
||
private LinkedHashMap<String, TwoBitSequenceRecord> sequenceRecords; |
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.
Add a comment that the order does in fact matter here
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.
Looks 2bit to me 👍
No description provided.