Skip to content

Commit

Permalink
CRISPRessoPooled --compile_postrun_references bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kclem committed Aug 9, 2023
1 parent cdb0310 commit 4127dda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CRISPResso2/CRISPRessoPooledCORE.py
Original file line number Diff line number Diff line change
Expand Up @@ -1634,15 +1634,15 @@ def default_sigpipe():
this_freqs = []
this_names = []
with zipfile.ZipFile(allele_frequency_table_zip_filename, 'r') as archive:
with archive.open(run_data['allele_frequency_table_filename'], 'r') as f:
head = f.readline()
with archive.open(run_data['running_info']['allele_frequency_table_filename'], 'r') as f:
head = f.readline().decode('UTF-8')
head_els = head.rstrip().split("\t")
allele_ind = head_els.index('Aligned_Sequence')
freq_ind = head_els.index('%Reads')

new_allele_idx = 1
for line in f:
line_els = line.split('\t')
line_els = line.decode('UTF-8').split('\t')
allele_seq = line_els[allele_ind].replace('-', '')
allele_freq = float(line_els[freq_ind])
#add first allele -- then add other alleles if they are more frequent than the cutoff
Expand Down
2 changes: 1 addition & 1 deletion CRISPResso2/CRISPRessoShared.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from CRISPResso2 import CRISPResso2Align
from CRISPResso2 import CRISPRessoCOREResources

__version__ = "2.2.13"
__version__ = "2.2.14"


###EXCEPTIONS############################
Expand Down

0 comments on commit 4127dda

Please sign in to comment.