Skip to content

Commit

Permalink
test if closing file addresses the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jykr committed Apr 11, 2024
1 parent c44a649 commit 7e36d63
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions bean/mapping/GuideEditCounter.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@ def _write_guide_reporter_alleles(self):
)

if "guide" in self.screen.uns["guide_reporter_allele_counts"].columns:
self.screen.uns[
"guide_reporter_allele_counts"
].guide = self.screen.guides.index[
self.screen.uns["guide_reporter_allele_counts"].guide
]
self.screen.uns["guide_reporter_allele_counts"].guide = (
self.screen.guides.index[
self.screen.uns["guide_reporter_allele_counts"].guide
]
)

def _write_reporter_alleles(self):
guides = []
Expand Down Expand Up @@ -828,7 +828,8 @@ def _check_readname_match_and_filter_quality(
n_reads_after_filtering += 1
R1_filtered.write(R1_record.format("fastq"))
R2_filtered.write(R2_record.format("fastq"))

R1_filtered.close()
R2_filtered.close()
return n_reads_after_filtering

def _write_start_log(self):
Expand Down

0 comments on commit 7e36d63

Please sign in to comment.