-
Notifications
You must be signed in to change notification settings - Fork 0
/
bait and prey.sql
91 lines (76 loc) · 2.13 KB
/
bait and prey.sql
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
my ONE BAIT QUERY = "
SELECT
$interactTB.Prey_locus,
$interactTB.Prey_cDNA_start,
$tair.Short_desc,
$tair.AA_len,
$corrCoef.Corr_coeff_anatomy,
$corrCoef.Corr_coeff_development,
$corrCoef.Corr_coeff_mutation,
$corrCoef.Corr_coeff_stimulus,
$corrCoef.Sig_anatomy,
$corrCoef.Sig_development,
$corrCoef.Sig_mutation,
$corrCoef.Sig_stimulus
FROM
$interactTB,
$tair,
$corrCoef
WHERE
$interactTB.Prey_locus = $tair.Locus AND
$interactTB.BP_ID = $corrCoef.BP_ID AND
$interactTB.Bait_ID = $bid";
my ONE PREY QUERY = "
SELECT
$bait.Bait_locus,
$interactTB.Prey_cDNA_start,
$tair.Short_desc,
$tair.AA_len,
$corrCoef.Corr_coeff_anatomy,
$corrCoef.Corr_coeff_development,
$corrCoef.Corr_coeff_mutation,
$corrCoef.Corr_coeff_stimulus,
$corrCoef.Sig_anatomy,
$corrCoef.Sig_development,
$corrCoef.Sig_mutation,
$corrCoef.Sig_stimulus
FROM
$interactTB,
$tair,
$corrCoef,
$bait
WHERE
$interactTB.Prey_locus = $tair.Locus AND
$interactTB.BP_ID = $corrCoef.BP_ID AND
$interactTB.Bait_ID = $bait.Bait_ID AND
$interactTB.Prey_locus = $p_locus";
# This will get information on the protein that is currently being looked at so it can be displayed
# in the protein info box
my ONE BAIT INFO QUERY = "SELECT
$baitTB.Bait_locus,
$baitTB.Bait_name,
$tair.Short_desc,
$tair.AA_len,
count(*)
FROM
$baitTB,
$tair,
$interactTB
WHERE
$baitTB.Bait_locus = $tair.Locus AND
$interactTB.Bait_ID = $baitTB.Bait_ID AND
$baitTB.Bait_ID = $bid;";
# This will get information on the protein that is currently being looked at so it can be displayed
# in the protein info box
my ONE PREY INFO QUERY = "SELECT
$baitTB.Bait_locus,
$baitTB.Bait_name,
$tair.Short_desc,
$tair.AA_len,
count(*)
FROM
$tair,
$interactTB
WHERE
$interactTB.Bait_locus = $tair.Locus AND
$baitTB.Bait_ID = $bid;";