Commit af459171 authored by Michael Menzel's avatar Michael Menzel

Use strand track as inout track if user sites do not have strand information

parent 4f7e6429
......@@ -40,8 +40,10 @@ public final class Intersect<T extends Track> implements TestTrack<T> {
@Override
public TestTrackResult searchTrack(T track, Sites pos) throws TrackTypeNotAllowedExcpetion{
if (track instanceof StrandTrack)
if (track instanceof StrandTrack && pos.getStrands().size() == pos.getPositionCount())
return searchSingleInterval((StrandTrack) track, pos);
if (track instanceof StrandTrack) // and user sites do not have positions:
return searchSingleInterval(((StrandTrack) track).getInOut(), pos);
if (track instanceof InOutTrack)
return searchSingleInterval((InOutTrack) track, pos);
if (track instanceof ScoredTrack)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment