Skip to content

Commit

Permalink
Fixing call
Browse files Browse the repository at this point in the history
  • Loading branch information
tjakobi committed Mar 21, 2023
1 parent 7837b02 commit a5b33c2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def connect_introns(introns, circ_coordinates):


def get_coverage_profile(bamfile, circ_coordinates, transcripts):
bam = pybedtools.bedtool(bamfile)
bam = pybedtools.BedTool(bamfile)
coordinates = pybedtools.BedTool('%s %s %s' % (
circ_coordinates[0], circ_coordinates[1], circ_coordinates[2]),
from_string=True)
Expand Down Expand Up @@ -214,7 +214,7 @@ def collapse_transcripts(transcript_coverage):


def infer_missing_structure(transcripts, coordinates, bedfile):
B = pybedtools.bedtool(bedfile)
B = pybedtools.BedTool(bedfile)
# B = B.filter(lambda b: b.chrom == coordinates[0] and b.start >= coordinates[1] and b.end <= coordinates[2])
for t in transcripts:
if len(transcripts[t]['coverage_breaks']) > 0:
Expand Down Expand Up @@ -344,7 +344,7 @@ def write_bed6(transcript_coverage, outfile, circ_coordinates, coverage):


def get_coverage(circ_coordinates, bamfile):
bam = pybedtools.bedtool(bamfile)
bam = pybedtools.BedTool(bamfile)
coordinates = pybedtools.BedTool('%s %s %s' % (
circ_coordinates[0], circ_coordinates[1], circ_coordinates[2]),
from_string=True)
Expand Down

0 comments on commit a5b33c2

Please sign in to comment.