File: vcffirstheader

package info (click to toggle)
freebayes 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,628 kB
  • sloc: cpp: 121,209; ansic: 3,925; sh: 911; python: 455; asm: 271; makefile: 213; perl: 27
file content (16 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python

import sys

header=True
for line in sys.stdin:
    if line.startswith('##'):
        if header:
            print line.strip()
        continue
    elif line.startswith('#'):
        if header:
           print line.strip()
           header=False
        continue
    print line.strip()