Skip to content

Commit

Permalink
feat(san): Remove disallowed characters from csv file
Browse files Browse the repository at this point in the history
  • Loading branch information
nbtm-sh committed Oct 23, 2024
1 parent dadc722 commit f99e37d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create_samplesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def create_csv(data, header_seq, header_fasta, fp):
fp.write(f"{header_seq},{header_fasta}\n")
logger.debug(f"Written CSV header {header_seq},{header_fasta}")
for row in data:
fp.write(row.name + "," + row.path + "\n")
fp.write(sanitize_input(row.name) + "," + row.path + "\n")
logger.debug(f"Wrote row for {row.name}")

fp.flush()
Expand Down

0 comments on commit f99e37d

Please sign in to comment.