Skip to content

Commit

Permalink
fix situation with fasta headers with spaces being truncated
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Sep 18, 2024
1 parent c7c2afd commit 42aa7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def write_fasta_with_sanitized_ids(fasta_in, out_filepath):
fasta_out = FastaIO.FastaWriter(handle, wrap=None)
fasta_out.write_header()
for record in SeqIO.parse(fasta_in, "fasta"):
record.id=sanitize_id_for_sam_rname(record.id)
record.id=sanitize_id_for_sam_rname(record.description)
fasta_out.write_record(record)
print("out_filepath",out_filepath)
print("os.path.dirname(out_filepath)",os.path.dirname(out_filepath))
Expand Down

0 comments on commit 42aa7c1

Please sign in to comment.