-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathautoSNPPanel.py
37 lines (32 loc) · 1.01 KB
/
autoSNPPanel.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
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 2 14:07:25 2020
@author: hunte
"""
from Common import CommonMethods
import sys
clades = []
if len(sys.argv) > 4:
tbCladeSNPFile = sys.argv[1]
tbSNPcladeFile = sys.argv[2]
snpsAndOrClade = sys.argv[3].split("--")
if len(snpsAndOrClade) == 2:
clades = snpsAndOrClade[0].split(",")
levels = int(snpsAndOrClade[1])
#snpPanelConfigFile = sys.argv[4]
params = sys.argv[4]
snpPanelConfigFile = sys.argv[5]
positives = []
negatives = []
# (positives, negatives) = CommonMethods.getEncodedPositivesNegatives(snps)
#tbcladeSNP = tabix.open(cladeSNPFilePath)
#
#print("J-Z1043", cladeSNPFilePath, SNPcladeFilePath)
#print(", ".join(getCladeSNPs("J-Z1043")))
#
#tbSNPclade = tabix.open(SNPcladeFilePath)
#print(SNPcladeFilePath)
#
#print(", ".join(getSNPClades("M12")))
#print(", ".join(getSNPClades("USP9YPLUS3636")))
print(CommonMethods.getJSONForAutoPanel(params, clades, levels, positives, negatives, tbCladeSNPFile, tbSNPcladeFile))