Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BiG-SCAPE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gebretsadkan, Samuel
BiG-SCAPE
Commits
4c4dc0d0
Commit
4c4dc0d0
authored
7 years ago
by
Jorge Navarro Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
Improved detection of Saccharide BGCs
parent
c428ec54
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
functions.py
+9
-6
9 additions, 6 deletions
functions.py
with
9 additions
and
6 deletions
functions.py
+
9
−
6
View file @
4c4dc0d0
...
...
@@ -68,8 +68,8 @@ def get_anchor_domains(filename):
return
domains
except
IOError
:
print
(
"
You have not provided the anchor_domains.txt file.
"
)
print
(
"
if you want to make use of the anchor domains in the DSS distance
metric,
\
make a file that contains a Pfam domain on each line.
"
)
print
(
"
if you want to make use of the anchor domains in the DSS distance\
metric,
make a file that contains a Pfam domain on each line.
"
)
return
set
()
...
...
@@ -463,16 +463,16 @@ def sort_bgc(product):
if
product
==
'
t1pks
'
:
return
(
"
PKSI
"
)
# PKS Other Types
elif
product
in
(
'
transatpks
'
,
'
t2pks
'
,
'
t3pks
'
,
'
otherks
'
,
'
hglks
'
):
elif
product
in
set
([
'
transatpks
'
,
'
t2pks
'
,
'
t3pks
'
,
'
otherks
'
,
'
hglks
'
]
):
return
(
"
PKSother
"
)
# NRPs
elif
product
==
'
nrps
'
:
return
(
"
NRPS
"
)
# RiPPs
elif
product
in
(
'
lantipeptide
'
,
'
thiopeptide
'
,
'
bacteriocin
'
,
'
linaridin
'
,
'
cyanobactin
'
,
'
glycocin
'
,
'
LAP
'
,
'
lassopeptide
'
,
'
sactipeptide
'
,
'
bottromycin
'
,
'
head_to_tail
'
,
'
microcin
'
,
'
microviridin
'
,
'
proteusin
'
):
elif
product
in
set
([
'
lantipeptide
'
,
'
thiopeptide
'
,
'
bacteriocin
'
,
'
linaridin
'
,
'
cyanobactin
'
,
'
glycocin
'
,
'
LAP
'
,
'
lassopeptide
'
,
'
sactipeptide
'
,
'
bottromycin
'
,
'
head_to_tail
'
,
'
microcin
'
,
'
microviridin
'
,
'
proteusin
'
]
):
return
(
"
RiPPs
"
)
# Saccharides
elif
product
in
(
'
amglyccycl
'
,
'
oligosaccharide
'
,
'
cf_saccharide
'
):
elif
product
in
set
([
'
amglyccycl
'
,
'
oligosaccharide
'
,
'
cf_saccharide
'
]
):
return
(
"
Saccharides
"
)
# Terpenes
elif
product
==
'
terpene
'
:
...
...
@@ -489,13 +489,16 @@ def sort_bgc(product):
return
(
"
PKSother
"
)
# pks hybrids
elif
len
(
subtypes
-
set
([
'
lantipeptide
'
,
'
thiopeptide
'
,
'
bacteriocin
'
,
'
linaridin
'
,
'
cyanobactin
'
,
'
glycocin
'
,
'
LAP
'
,
'
lassopeptide
'
,
'
sactipeptide
'
,
'
bottromycin
'
,
'
head_to_tail
'
,
'
microcin
'
,
'
microviridin
'
,
'
proteusin
'
]))
==
0
:
return
(
"
RiPPs
"
)
elif
len
(
subtypes
-
set
([
'
amglyccycl
'
,
'
oligosaccharide
'
,
'
cf_saccharide
'
]))
==
0
:
return
(
"
Saccharide
"
)
else
:
return
(
"
Others
"
)
# other hybrid
# Others
elif
product
in
(
'
arylpolyene
'
,
'
aminocoumarin
'
,
'
ectoine
'
,
'
butyrolactone
'
,
'
nucleoside
'
,
'
melanin
'
,
'
phosphoglycolipid
'
,
'
phenazine
'
,
'
phosphonate
'
,
'
other
'
,
'
cf_putative
'
,
'
resorcinol
'
,
'
indole
'
,
'
ladderane
'
,
'
PUFA
'
,
'
furan
'
,
'
hserlactone
'
,
'
fused
'
,
'
cf_fatty_acid
'
,
'
siderophore
'
,
'
blactam
'
):
elif
product
in
set
([
'
arylpolyene
'
,
'
aminocoumarin
'
,
'
ectoine
'
,
'
butyrolactone
'
,
'
nucleoside
'
,
'
melanin
'
,
'
phosphoglycolipid
'
,
'
phenazine
'
,
'
phosphonate
'
,
'
other
'
,
'
cf_putative
'
,
'
resorcinol
'
,
'
indole
'
,
'
ladderane
'
,
'
PUFA
'
,
'
furan
'
,
'
hserlactone
'
,
'
fused
'
,
'
cf_fatty_acid
'
,
'
siderophore
'
,
'
blactam
'
)
]
:
return
(
"
Others
"
)
# ??
else
:
print
(
"
Warning: unknown product {}
"
.
format
(
product
))
return
(
"
Others
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment