Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
medema-group
BiG-SCAPE
Commits
2acdaf42
Commit
2acdaf42
authored
Apr 30, 2018
by
Kautsar, Satria
Browse files
mibig bgcs are highlighted in the network
parent
4d8c96bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
bigscape.py
View file @
2acdaf42
...
...
@@ -1374,6 +1374,7 @@ def clusterJsonBatch(bgcs, pathBase, className, matrix, pos_alignments, cutoffs=
bgcJsonDict
[
bgcName
][
"desc"
]
=
bgc_info
[
bgcName
].
description
bgcJsonDict
[
bgcName
][
"start"
]
=
1
bgcJsonDict
[
bgcName
][
"end"
]
=
bgc_info
[
bgcName
].
bgc_size
bgcJsonDict
[
bgcName
][
"mibig"
]
=
bgcName
in
mibig_set
pfdFile
=
os
.
path
.
join
(
pfd_folder
,
bgcName
+
".pfd"
)
fastaFile
=
os
.
path
.
join
(
bgc_fasta_folder
,
bgcName
+
".fasta"
)
...
...
html_template/output/html_content/css/style.css
View file @
2acdaf42
...
...
@@ -195,6 +195,9 @@ a:visited {
.li-check.checked
{
background
:
rgba
(
0
,
0
,
0
,
0.5
);
}
.li-opendetail.mibig
{
background
:
rgba
(
131
,
236
,
240
,
0.5
);
}
#header
{
margin
:
0px
auto
;
display
:
block
;
...
...
html_template/output/html_content/js/bigscape.js
View file @
2acdaf42
...
...
@@ -345,9 +345,9 @@ function Bigscape(bs_data, bs_families, bs_alignment, bs_similarity, network_con
var
ui
=
Viva
.
Graph
.
svg
(
'
circle
'
)
.
attr
(
'
r
'
,
10
)
.
attr
(
'
fill
'
,
(
fam_colors
[
bs_to_cl
[
node
.
id
]]));
if
(
bs_data
[
node
.
id
]
.
is_reference
)
{
if
(
bs_data
[
node
.
id
]
[
"
mibig
"
]
)
{
ui
.
attr
(
"
stroke
"
,
"
blue
"
);
ui
.
attr
(
"
stroke-width
"
,
"
3
px
"
);
ui
.
attr
(
"
stroke-width
"
,
"
4
px
"
);
}
$
(
ui
).
hover
(
function
()
{
// mouse over
var
temp_highlight
=
[];
...
...
@@ -599,7 +599,10 @@ BigscapeFunc.updateDescription = function(ids, bs_svg, bs_data, bs_to_cl, bs_fam
var
id
=
bs_families
[
i
][
"
members
"
][
j
];
var
lii
=
$
(
"
<li id='bs-desc_ui-li_bs-
"
+
id
+
"
'>
"
);
lii
.
append
(
"
<a href='##' class='li-check'></a>
"
);
lii
.
append
(
"
<a href='##' class='li-opendetail'>
"
+
bs_data
[
id
][
"
id
"
]
+
"
</a>
"
);
var
linktext
=
$
(
"
<a href='##' class='li-opendetail'>
"
+
bs_data
[
id
][
"
id
"
]
+
"
</a>
"
).
appendTo
(
lii
);
if
(
bs_data
[
id
][
"
mibig
"
])
{
linktext
.
addClass
(
"
mibig
"
);
}
lii
.
find
(
"
a.li-opendetail
"
).
click
({
id
:
id
,
bs_svg
:
bs_svg
,
bs_data
:
bs_data
,
bs_families
:
bs_families
,
bs_to_cl
:
bs_to_cl
,
det_ui
:
det_ui
},
function
(
handler
){
BigscapeFunc
.
openDetail
(
handler
.
data
.
id
,
handler
.
data
.
bs_svg
,
handler
.
data
.
bs_data
,
handler
.
data
.
bs_to_cl
,
handler
.
data
.
bs_families
,
handler
.
data
.
det_ui
);
handler
.
data
.
det_ui
.
parent
().
removeClass
(
"
hidden
"
);
...
...
@@ -918,6 +921,10 @@ BigscapeFunc.openFamDetail = function(id_fam, ids_highlighted, bs_svg, bs_data,
jqG
.
find
(
"
.arrower-label
"
).
attr
(
'
transform
'
,
'
scale(-1,1)
'
+
'
translate(
'
+
(
-
2
*
bgcLength
)
+
'
,0)
'
)
.
attr
(
"
font-style
"
,
"
italic
"
);
}
if
(
bs_data
[
bgcId
][
"
mibig
"
])
{
jqG
.
attr
(
"
font-weight
"
,
"
bold
"
)
.
attr
(
"
fill
"
,
"
blue
"
);
}
jqG
.
attr
(
'
transform
'
,
jqG
.
attr
(
'
transform
'
)
+
'
scale(0.5)
'
);
jqG
.
attr
(
'
idx
'
,
bgcId
);
jqG
.
appendTo
(
treeSVG
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment