Skip to content

Commit

Permalink
feat: join multi-files on ',' instead of ',<SPACE>'
Browse files Browse the repository at this point in the history
  • Loading branch information
J-81 authored May 15, 2023
1 parent da64da7 commit 5bd18cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dp_tools/core/post_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def generate_new_column_dicts(
)

# now remap those processing sample names to their orignal names,
# required for joining to orignal assay table
# required for fing to orignal assay table
processing_to_orignal_mapping = pd.read_csv(
dataset.data_assets["runsheet"].path, index_col="Sample Name"
)["Original Sample Name"].to_dict()
Expand Down Expand Up @@ -264,7 +264,7 @@ def generate_new_column_dicts(
# joining by comma
for header, header_wise in new_cols.items():
for sample, sample_wise in header_wise.items():
new_value = ", ".join(sorted(list(new_cols[header][sample])))
new_value = ",".join(sorted(list(new_cols[header][sample])))

new_cols[header][sample] = new_value

Expand Down

0 comments on commit 5bd18cf

Please sign in to comment.