Commit d50e14ee authored by bow's avatar bow
Browse files

Add script for VarScan

parent bf8743a5
#!/usr/bin/env python
from __future__ import print_function
__author__="Wai Yi Leung"
import sys
if __name__ == "__main__":
Fix the mpileupformat for RNA mpileup
Solution offered by Irina Pulyakhina (LUMC-HG)
for line in sys.stdin:
l = line.strip().split("\t")
if l[3] == "0":
# no alignment to this position
print("\t".join(map(str, l)))
fix_col = l[4].replace('<', '').replace('>', '')
new_size = len(fix_col)
old_size = len(l[4])
if new_size != old_size:
l[4] = fix_col
l[3] = "{}".format(new_size)
if new_size == 0:
l[5] = ""
print("\t".join(map(str, l)))
Supports Markdown
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