Skip to content
Snippets Groups Projects
Commit 947dc833 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Fix tn5 shift.

parent b5b81f22
Branches
Tags
No related merge requests found
......@@ -130,7 +130,7 @@ def tn5_shift_tagalign(tag_filename, shitfted_tag_filename):
steps = [
"zcat -f %s" % (tag_filename),
r"""awk 'BEGIN{OFS="\t"}{{if ($6 == "+") {{$2 = $2 + 4}}; else if ($6 == "-") {{$3 = $3 - 5}} print $0}}'""",
r"""awk 'BEGIN {OFS = FS}{ if ($6 == "+") {$2 = $2 + 4} else if ($6 == "-") {$3 = $3 - 5} print $0}'""",
"gzip -nc"]
out, err = utils.run_pipe(steps, outfile=shitfted_tag_filename)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment