Skip to content

Commit

Permalink
Update CRISPRessoPooledCORE.py (#502)
Browse files Browse the repository at this point in the history
resolve error TypeError: ufunc 'add' did not contain a loop with signature matching types (dtype('int64'))...
Presumably this error arises when df_all_demux['chr_id'] is an int.
  • Loading branch information
kclem authored Nov 21, 2024
1 parent 94db5fc commit ecac07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRISPResso2/CRISPRessoPooledCORE.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ def rreplace(s, old, new):
if can_finish_incomplete_run and 'genome_demultiplexing' in crispresso2_info['running_info']['finished_steps'] and os.path.isfile(REPORT_ALL_DEPTH):
info('Using previously-computed demultiplexing of genomic reads')
df_all_demux = pd.read_csv(REPORT_ALL_DEPTH, sep='\t')
df_all_demux['loc'] = df_all_demux['chr_id']+' ' + df_all_demux['start'].apply(str) + ' '+df_all_demux['end'].apply(str)
df_all_demux['loc'] = df_all_demux['chr_id'].apply(str) + ' ' + df_all_demux['start'].apply(str) + ' '+df_all_demux['end'].apply(str)
df_all_demux.set_index(['loc'], inplace=True)
else:
#REDISCOVER LOCATIONS and DEMULTIPLEX READS
Expand Down

0 comments on commit ecac07a

Please sign in to comment.