def _getTrack(self):
     track = Track(self._trackName)
     track.addFormatReq(TrackFormatReq(allowOverlaps=self._allowOverlaps))
     return track
 def _getTrackView(self, trackName, region, allowOverlaps):
     track = Track(trackName)
     track.addFormatReq(TrackFormatReq(allowOverlaps=allowOverlaps))
     return track.getTrackView(region)
Example #3
0
def get_track_view(track_name, allow_overlaps, genome_region):
    track = Track(track_name)
    track.addFormatReq(TrackFormatReq(allowOverlaps=allow_overlaps, borderHandling='crop'))
    return track.getTrackView(genome_region)