Skip to content

Commit

Permalink
Fix f-string backslash error
Browse files Browse the repository at this point in the history
  • Loading branch information
samuell committed Sep 13, 2024
1 parent 9df4e18 commit d599a80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions microSALT/utils/job_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ def create_assemblysection(self):
# b. Print out the sequence line.
# Note: The match function requires GNU awk (gawk) to be able to capture groups in regexes.
batchfile.write(
f"gawk "
f"'/^>/ { match($0, /Contig_([0-9]+)_([0-9\.]+)/, m) } "
f"!/^>/ { seqlen=length($0); print \">NODE_\" m[1] \"_length_\" seqlen \"_cov_\" m[2]; print $0; }' "
"gawk "
"'/^>/ { match($0, /Contig_([0-9]+)_([0-9\.]+)/, m) } "
"!/^>/ { seqlen=length($0); print \">NODE_\" m[1] \"_length_\" seqlen \"_cov_\" m[2]; print $0; }' "
f"{contigs_file} > {contigs_file_spadesfmt}\n"
)

Expand Down

0 comments on commit d599a80

Please sign in to comment.