Skip to content

Commit

Permalink
Coerce int values
Browse files Browse the repository at this point in the history
  • Loading branch information
Snicker7 committed Feb 16, 2022
1 parent ede7d85 commit e5afa47
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CRISPResso2/CRISPRessoBatchCORE.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@ def main():
# batch_params=pd.read_csv(args.batch_settings,sep=None,engine='python',error_bad_lines=False)
batch_params.columns = batch_params.columns.str.strip(' -\xd0')

int_columns = ['default_min_aln_score', 'min_average_read_quality', 'min_single_bp_quality',
'min_bp_quality_or_N',
'quantification_window_size', 'quantification_window_center', 'exclude_bp_from_left',
'exclude_bp_from_right',
'plot_window_size', 'max_rows_alleles_around_cut_to_plot']
for int_col in int_columns:
batch_params[int_col] = batch_params[int_col].astype(int)

#rename column "a" to "amplicon_seq", etc
batch_params.rename(index=str, columns=CRISPRessoShared.get_crispresso_options_lookup(), inplace=True)
batch_count = batch_params.shape[0]
Expand Down

0 comments on commit e5afa47

Please sign in to comment.