Skip to content

Commit

Permalink
fix issue with spaces in mutation strings
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanpilz committed Jun 7, 2023
1 parent 16c0cd7 commit 518a323
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions freyja/read_analysis_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ def plot_covariants(covar_file, output, num_clusters, min_mutations, nt_muts):

covars = pd.read_csv(covar_file, sep='\t', header=0)
covars['Covariants'] = covars['Covariants']\
.str.replace(', ', ',')\
.str.split(' ')\
.apply(filter_covariants_output, args=(min_mutations, nt_muts))\

Expand Down

0 comments on commit 518a323

Please sign in to comment.