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
Kautsar, Satria
BiG-SCAPE
Commits
86bd2cbc
Commit
86bd2cbc
authored
Jun 19, 2018
by
Jorge Navarro Muñoz
Browse files
GCC: annotated GCF label instead of GCF number in the clans .tsv file
parent
1146bf36
Changes
1
Hide whitespace changes
Inline
Side-by-side
bigscape.py
View file @
86bd2cbc
...
...
@@ -1689,7 +1689,8 @@ def clusterJsonBatch(bgcs, pathBase, className, matrix, pos_alignments, cutoffs=
except
UnboundLocalError
:
# Noticed this could happen if the sequences are exactly
# the same and all distances == 0
print
(
" Warning: Unable to root at midpoint file {}"
.
format
(
newick_file_path
))
if
verbose
:
print
(
" Warning: Unable to root at midpoint file {}"
.
format
(
newick_file_path
))
pass
newick
=
tree
.
format
(
"newick"
)
...
...
@@ -1699,7 +1700,7 @@ def clusterJsonBatch(bgcs, pathBase, className, matrix, pos_alignments, cutoffs=
newick_trees
[
exemplar_idx
]
=
newick
###
Use the 0.5 distance cutoff to cluster clans by default
###
- - - GCC - - -
bs_similarity_families
=
[]
if
clusterClans
and
cutoff
==
clanClassificationCutoff
:
# Detect if there's only 1 GCF. It makes pySAPC crash
...
...
@@ -1750,7 +1751,8 @@ def clusterJsonBatch(bgcs, pathBase, className, matrix, pos_alignments, cutoffs=
# affinity propagation can fail in some circumstances (e.g. only singletons)
if
exemplarsClans
is
not
None
:
clanLabels
=
[
exemplarsClans
[
labelsClans
[
i
]]
for
i
in
range
(
len
(
familyIdx
))]
# translate and record GCF label instead of GCF number
clanLabels
=
[
familyIdx
[
exemplarsClans
[
labelsClans
[
i
]]]
for
i
in
range
(
len
(
familyIdx
))]
else
:
clanLabels
=
[]
...
...
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