Skip to content

Commit

Permalink
dont sanitize newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Sep 19, 2024
1 parent 451b0e0 commit 390b07d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,10 @@ def write_fasta_with_sanitized_ids(fasta_in, out_filepath):
with open(out_filepath, "wt") as outf:
with open(fasta_in, "rt") as inf:
for line in inf:
line = line.strip()
if line.startswith(">"):
line = ">"+sanitize_id_for_sam_rname(line[1:])
outf.write(line)
outf.write(line + '\n')
print("out_filepath",out_filepath)
print("os.path.dirname(out_filepath)",os.path.dirname(out_filepath))
return out_filepath
Expand Down

0 comments on commit 390b07d

Please sign in to comment.