File: bcftools.py

package info (click to toggle)
python-pysam 0.15.4%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,992 kB
  • sloc: ansic: 140,738; python: 7,881; sh: 265; makefile: 223; perl: 41
file content (24 lines) | stat: -rw-r--r-- 434 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from pysam.utils import PysamDispatcher

BCFTOOLS_DISPATCH = [
    "index",
    "annotate",
    "concat",
    "isec",
    "merge",
    "norm",
    "plugin",
    "query",
    "reheader",
    "view",
    "call",
    "consensus",
    "cnv",
    "filter",
    "gtcheck",
    "roh",
    "stats"]

# instantiate bcftools commands as python functions
for cmd in BCFTOOLS_DISPATCH:
    globals()[cmd] = PysamDispatcher("bcftools", cmd, None)