Skip to content
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

don't sort output #8053

Merged
merged 1 commit into from
Oct 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,17 @@ public void onTraversalStart() {
reference = new Reference(ReferenceDataSource.of(referenceArguments.getReferencePath()));
codonTracker = new CodonTracker(orfCoords, reference.getRefSeq(), logger);
if ( writeRejectedReads ) {
rejectedReadsBAMWriter = createSAMWriter(new GATKPath(outputFilePrefix + ".rejected.bam"), false);
rejectedReadsBAMWriter = createSAMWriter(new GATKPath(outputFilePrefix + ".rejected.bam"), true);
}
}

@Override
protected SAMFileHeader getHeaderForSAMWriter() {
final SAMFileHeader header = super.getHeaderForSAMWriter();
header.setSortOrder(SortOrder.unsorted);
return header;
}

@Override
public void traverse() {
// ignore non-primary alignments
Expand Down Expand Up @@ -1324,11 +1331,11 @@ public void reportWildCodonCounts( final Interval refCoverage ) {
throw new UserException("Can't interpret ORF as list of pairs of coords: " + orfCoords);
}
try {
final int start = Integer.valueOf(coords[0]);
final int start = Integer.parseInt(coords[0]);
if ( start < 1 ) {
throw new UserException("Coordinates of ORF are 1-based.");
}
final int end = Integer.valueOf(coords[1]);
final int end = Integer.parseInt(coords[1]);
if ( end < start ) {
throw new UserException("Found ORF end coordinate less than start: " + orfCoords);
}
Expand Down