-
Notifications
You must be signed in to change notification settings - Fork 1
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 tool to make IGV-compat. BEDPE files from AggregateSvPileup #37
Conversation
class _All extends ClpGroup { | ||
override val name: String = "All tools" | ||
override val description: String = "All tools." | ||
class _BreakpointAndSv extends ClpGroup { | ||
override val name: String = "Breakpoint and SV Tools" | ||
override val description: String = "Primary tools for calling and transforming breakpoints and SVs." | ||
} | ||
|
||
final val All = classOf[_All] | ||
class _Utilities extends ClpGroup { | ||
override val name: String = "Utility Tools" | ||
override val description: String = "Helper tools for working with breakpoint or SV data." | ||
} | ||
|
||
final val BreakpointAndSv = classOf[_BreakpointAndSv] | ||
final val Utilities = classOf[_Utilities] |
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.
end1 = pileup.left_max_pos + 1, | ||
chrom2 = pileup.right_contig, | ||
start2 = pileup.right_min_pos, | ||
end2 = pileup.right_max_pos + 1, |
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.
Max positions are 0-based so to make them half-open we need to add 1.
EDIT: This was wrong! See #40
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.
nitpicks, but lgtm
Hopefully this addition is welcome! Converting the output of AggregateSvPileup to BEDPE facilitates genome-browsing in IGV and helps with understanding how breakpoint events relate to the alignments that cause them. There exist more advanced features of BEDPE in IGV (like record-specific coloring) but I chose not to implement that at this time to keep the tool simple and forwards compatible. Here is what test data looks like in IGV: