If i have to search proteins by their synonyms, i think i have to use a code line such as:
List <ProteinNode> proteins = nodeRetriever.getProteinsByFullName(protein);
"protein" is a string with its name. I downloaded the folder uniref50.xml and i put as arg[0] it on Eclipse, but i have exceptions and i don't know why. They are parsing errors but what i have to do if the line code is right? Why there are these exceptions? Maybe it depends on the fact i don't use accessions? I' m desperate...
graphservice hashcode: -1836727
java.lang.RuntimeException: org.apache.lucene.queryParser.ParseException: Cannot parse 'Glycine dehydrogenase [decarboxylating], mitochondrial': Encountered " "]" "] "" at line 1, column 38.
Was expecting one of:
"TO" ...
<RANGEIN_QUOTED> ...
<RANGEIN_GOOP> ...
at org.neo4j.index.impl.lucene.IndexType.query(IndexType.java:290)
at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:226)
at com.era7.bioinfo.bio4j.model.util.NodeRetriever.getProteinsByFullName(NodeRetriever.java:156)
at src.main.java.com.era7.bioinfo.bio4j.drug.Prova.main(Prova.java:136)
.
.
.
.
.