Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
51734250
Commit
51734250
authored
Nov 23, 2020
by
Piotr Gawron
Browse files
uniprot withough gene name caused issues
parent
efbc4b1c
Pipeline
#34555
passed with stage
in 23 minutes and 9 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
51734250
...
...
@@ -5,6 +5,8 @@ minerva (15.1.1) stable; urgency=medium
opened
(#
1338
)
*
Bug
fix
:
API
call
returning
list
of
overlays
returned
for
non
existing
project
returned
access
denied
status
insted
Not
Found
(#
1370
)
*
Bug
fix
:
results
for
chembl
targetting
uniprot
without
gene
name
(
for
example
P0C2L1
)
could
crash
caching
(#
1377
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Thu
,
23
Nov
2020
15
:
00
:
00
+
0200
...
...
annotation/src/main/java/lcsb/mapviewer/annotation/services/ChEMBLParser.java
View file @
51734250
...
...
@@ -217,7 +217,7 @@ public class ChEMBLParser extends DrugAnnotation implements IExternalService {
* @throws DrugSearchException
* thrown when there is a problem with annotations
*/
private
MiriamData
targetComponentToMiriamData
(
Node
targetComponent
)
throws
DrugSearchException
{
MiriamData
targetComponentToMiriamData
(
Node
targetComponent
)
throws
DrugSearchException
{
MiriamData
result
=
null
;
Node
uniprotAccessionId
=
XmlParser
.
getNode
(
"accession"
,
targetComponent
.
getChildNodes
());
if
(
uniprotAccessionId
!=
null
)
{
...
...
@@ -226,7 +226,9 @@ public class ChEMBLParser extends DrugAnnotation implements IExternalService {
try
{
result
=
uniprotAnnotator
.
uniProtToHgnc
(
new
MiriamData
(
MiriamType
.
UNIPROT
,
uniprotId
));
result
.
setAnnotator
(
null
);
if
(
result
!=
null
)
{
result
.
setAnnotator
(
null
);
}
}
catch
(
UniprotSearchException
e
)
{
throw
new
DrugSearchException
(
e
);
}
...
...
annotation/src/test/java/lcsb/mapviewer/annotation/services/ChEMBLParserTest.java
View file @
51734250
...
...
@@ -864,4 +864,12 @@ public class ChEMBLParserTest extends AnnotationTestFunctions {
assertNotNull
(
parser
.
findDrug
(
"CABOZANTINIB"
));
}
@Test
public
void
testTargetComponentToMiriamDataForNonHgncUniprotId
()
throws
Exception
{
ChEMBLParser
parser
=
Mockito
.
spy
(
chemblParser
);
Node
node
=
getNodeFromXmlString
(
"<xml><accession>P0C2L1</accession></xml>"
);
MiriamData
result
=
parser
.
targetComponentToMiriamData
(
node
);
assertNull
(
result
);
}
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment