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

Potential Bug Related to Exonic Breakpoints #3

Open
thomas-coard-nih opened this issue Mar 5, 2019 · 0 comments
Open

Potential Bug Related to Exonic Breakpoints #3

thomas-coard-nih opened this issue Mar 5, 2019 · 0 comments

Comments

@thomas-coard-nih
Copy link

thomas-coard-nih commented Mar 5, 2019

While using Pegasus, I think that I encountered a bug relating to exonic breakpoints. Currently if a breakpoint is in an exon, it will not enter the if statement block on line 1612 because the breakpoint position will not be greater than that exon’s end position. This causes none of that exon’s coordinates to be returned, making the previous exon the last exon whose data is returned.

Line 1612 could likely be fixed by replacing “l.end()” with “l.start()”. It is possible that there are similar errors elsewhere in the code.

In my limited testing, this bug only pertains to exonic breakpoints and not intronic breakpoints.

source/java_modules/FusionSequenceFromGTF/src/FusionSequenceFromGTF/FusionSequenceFrom

//5' positive strand
if(fiveprimegene.getGeneStrand().compareTo("+")==0)
{
for (Location l : locationList)
{
if(l.end()<=fiveprimegene.getGeneBreakpoint())
{
if(l.start()<=fiveprimegene.getGeneBreakpoint() && l.end()>=fiveprimegene.getGeneBreakpoint())
{
lastlocation = new Location(l.start(),fiveprimegene.getGeneBreakpoint());
overlap_breakpoint=true;
sb.append(getSequenceStringFromLocation(
indexedfasta,
fiveprime_ref,
fiveprimegene.getGeneStrand(),
l.start()+1,
fiveprimegene.getGeneBreakpoint()));
}
else
{
lastlocation = new Location(l);
sb.append(getSequenceStringFromLocation(
indexedfasta,
fiveprime_ref,
fiveprimegene.getGeneStrand(),
l.start()+1,
l.end()));
}
}
}

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

No branches or pull requests

1 participant