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

Expose the set of tags to reverse and reverse complement as parameters. #673

Merged
merged 1 commit into from
Aug 2, 2016

Conversation

tfenne
Copy link
Member

@tfenne tfenne commented Aug 1, 2016

Description

Expose the set of tags to reverse and reverse complement as parameters, so that reads can be reverse complemented and all tags that are one-value-per-base in the read can be kept in sync.

Checklist

  • Code compiles correctly
  • New tests covering changes and new functionality
  • All tests passing
  • Extended the README / documentation, if necessary
  • Is not backward compatible (breaks binary or source compatibility)

reverseComplement(rec, TAGS_TO_REVERSE_COMPLEMENT, TAGS_TO_REVERSE);
}

public static void reverseComplement(final SAMRecord rec, Collection<String> tagsToRevcomp, Collection<String> tagsToReverse) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need 'final's here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@eitanbanks
Copy link
Contributor

Comments made. @nh13 should feel free to comment himself (as the assigned reviewer) or just assign to me.

@nh13
Copy link
Member

nh13 commented Aug 1, 2016

@tfenne 👍 me but please respond to @eitanbanks comments.

SAMTagUtil.getSingleton().OQ
};
private static List<String> TAGS_TO_REVERSE_COMPLEMENT = Arrays.asList(SAMTag.E2.name(), SAMTag.SQ.name());
private static List<String> TAGS_TO_REVERSE = Arrays.asList(SAMTag.OQ.name(), SAMTag.U2.name());

/**
* Reverse-complement all known sequence and base quality attributes of the SAMRecord.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update javadoc

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@tfenne
Copy link
Member Author

tfenne commented Aug 2, 2016

Looks like just the remote tests are failing (again), and nothing to do with this PR. I've re-kicked the build, but if they fail again I'll merge anyway.

@tfenne tfenne merged commit ec2d3f9 into master Aug 2, 2016
@tfenne tfenne deleted the tf_rc_samrecord_params branch August 2, 2016 11:41
jamesemery pushed a commit to jamesemery/htsjdk that referenced this pull request Sep 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants