diff --git a/CRISPResso2/CRISPRessoBatchCORE.py b/CRISPResso2/CRISPRessoBatchCORE.py index 0e198d66..22a8f65e 100644 --- a/CRISPResso2/CRISPRessoBatchCORE.py +++ b/CRISPResso2/CRISPRessoBatchCORE.py @@ -196,7 +196,7 @@ def main(): batch_params[arg] = getattr(args, arg) else: if (getattr(args, arg) is not None): - batch_params[arg].fillna(value=getattr(args, arg), inplace=True) + batch_params.fillna(value={arg: getattr(args, arg)}, inplace=True) # assert that all names are unique # and clean names diff --git a/CRISPResso2/CRISPRessoWGSCORE.py b/CRISPResso2/CRISPRessoWGSCORE.py index e8042c01..8c01368e 100644 --- a/CRISPResso2/CRISPRessoWGSCORE.py +++ b/CRISPResso2/CRISPRessoWGSCORE.py @@ -582,7 +582,7 @@ def set_filenames(row): cols_to_print = ["chr_id", "bpstart", "bpend", "sgRNA", "Expected_HDR", "Coding_sequence", "sequence", "n_reads", "bam_file_with_reads_in_region", "fastq_file_trimmed_reads_in_region"] if args.gene_annotations: cols_to_print.append('gene_overlapping') - df_regions.fillna('NA').to_csv(report_reads_aligned_filename, sep='\t', columns = cols_to_print, index_label="Name") + df_regions.infer_objects(copy=False).fillna('NA').to_csv(report_reads_aligned_filename, sep='\t', columns = cols_to_print, index_label="Name") #save progress crispresso2_info['running_info']['finished_steps']['generation_of_fastq_files_for_each_amplicon'] = True