File: bcftools.py

package info (click to toggle)
python-pysam 0.20.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,348 kB
  • sloc: ansic: 137,388; python: 8,501; sh: 283; makefile: 263; perl: 41
file content (29 lines) | stat: -rw-r--r-- 499 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
25
26
27
28
29
from pysam.utils import PysamDispatcher

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

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