diff --git a/src/hostile/aligner.py b/src/hostile/aligner.py index 1f57f0e..8be7d91 100644 --- a/src/hostile/aligner.py +++ b/src/hostile/aligner.py @@ -123,7 +123,7 @@ def gen_clean_cmd( rename_cmd = ( # Preserve header (^@) lines but do not start counting until first non ^@ line ' | awk \'BEGIN {{ FS=OFS="\\t"; line_count=0 }} /^@/ {{ print $0; next }}' - ' {{ $1=int(line_count+1)" "; print $0; line_count++ }}\'' + " {{ $1=int(line_count+1); print $0; line_count++ }}'" if rename else "" ) @@ -197,7 +197,7 @@ def gen_paired_clean_cmd( rename_cmd = ( # Preserve header (^@) lines but do not start counting until first non ^@ line ' | awk \'BEGIN {{ FS=OFS="\\t"; start=0; line_count=1 }} /^@/ {{ print $0; next }}' - ' !start && !/^@/ {{ start=1 }} start {{ $1=int((line_count+1)/2)" ";' + " !start && !/^@/ {{ start=1 }} start {{ $1=int((line_count+1)/2);" " print $0; line_count++ }}'" if rename else ""