-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.py
43 lines (30 loc) · 1.01 KB
/
test.py
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
30
31
32
33
34
35
36
37
38
39
40
41
""" test.py """
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
import os
import logging
import sys
import argparse
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#plt.ion()
#plt.plot([1, 2])
if not os.environ.get('DISPLAY'):
import matplotlib
matplotlib.use("Agg", force=True)
from matplotlib.backends.backend_pdf import PdfPages
plt.ioff()
plt.switch_backend('agg')
parser = argparse.ArgumentParser(description='ctCNV, a python tool for CNV anlaysis of ctDNA.',
epilog="Contact Hao Guo <guo.hao@genecast.com.cn> for help.")
parser.add_argument('integers', metavar='N', type=int, nargs='+',
help='an integer for the accumulator')
parser.add_argument('--sum', dest='accumulate', action='store_const',
const=sum, default=max,
help='sum the integers (default: find the max)')
parser.add_argument('--version', action='version', version='%(prog)s 2.0')
args = parser.parse_args()
print args
#print(args.accumulate(args.integers))