Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Problem specifying the hub molecule #42

Closed
achantzis opened this issue Oct 22, 2018 · 6 comments
Closed

Problem specifying the hub molecule #42

achantzis opened this issue Oct 22, 2018 · 6 comments

Comments

@achantzis
Copy link

Dear all,

I am running lomap on a set of molecules and it runs fine using python 2.7. I have the following problem though: when I try to specify the hub molecule, so as to estimate the similarity scores of all the rest of the molecules with respect to the hub molecule I do not get the desired results. The output is the same graph as the one I get without specifying the hub option. I use the following command:

lomap -v pedantic -b system_01.mol2 -a ~/molecules/test

Can anyone please tell me what might be the problem?

Sincerely,

Agisilaos

@davidlmobley
Copy link
Member

That's odd. @shuail ??

(He added the hub option recently.)

@shuail
Copy link
Collaborator

shuail commented Oct 23, 2018

@achantzis That's odd, could you try to run the test case under the tests folder (the function is here

def test_graph_radial_hub(self):
) and see if you could get the radial graph using that example case?

@achantzis
Copy link
Author

@shuail I have run the test script as: python ./test_lomap.py

And I get the following:

.usage: LOMAPv1.0 [-h] [-p PARALLEL] [-v {off,info,pedantic}] [-t TIME]
[-e ECRSCORE] [-o] [-n NAME] [-d] [-m MAX] [-c CUTOFF] [-r]
[-b HUB] [-f] [-a]
directory
LOMAPv1.0: error: argument -p/--parallel: invalid int value: '-1.5'
usage: LOMAPv1.0 [-h] [-p PARALLEL] [-v {off,info,pedantic}] [-t TIME]
[-e ECRSCORE] [-o] [-n NAME] [-d] [-m MAX] [-c CUTOFF] [-r]
[-b HUB] [-f] [-a]
directory
LOMAPv1.0: error: argument -v/--verbose: invalid choice: 'err_option' (choose from 'off', 'info', 'pedantic')
usage: LOMAPv1.0 [-h] [-p PARALLEL] [-v {off,info,pedantic}] [-t TIME]
[-e ECRSCORE] [-o] [-n NAME] [-d] [-m MAX] [-c CUTOFF] [-r]
[-b HUB] [-f] [-a]
directory
LOMAPv1.0: error: argument -t/--time: invalid int value: '-1.5'
usage: LOMAPv1.0 [-h] [-p PARALLEL] [-v {off,info,pedantic}] [-t TIME]
[-e ECRSCORE] [-o] [-n NAME] [-d] [-m MAX] [-c CUTOFF] [-r]
[-b HUB] [-f] [-a]
directory
LOMAPv1.0: error: argument -m/--max: invalid int value: '-5.0'
usage: LOMAPv1.0 [-h] [-p PARALLEL] [-v {off,info,pedantic}] [-t TIME]
[-e ECRSCORE] [-o] [-n NAME] [-d] [-m MAX] [-c CUTOFF] [-r]
[-b HUB] [-f] [-a]
directory
LOMAPv1.0: error: argument -m/--max: invalid int value: 'string'
..........

Ran 11 tests in 15.264s

OK

It seems that the tests for invalid arguments have passed and all is fine. I did not get any graph out of this run though... Was it expected to produce a graph by running the tests of this script?

@ppxasjsm
Copy link
Collaborator

@achantzis are you on the master branch or the networkx2 one? Can you type git log in your terminal? You may just not be using a branch where that functionality is already implemented?

@achantzis
Copy link
Author

@ppxasjsm

Doing git log I got the following:

commit f0d52a1
Author: ppxasjsm antonia.mey@fu-berlin.de
Date: Tue Oct 16 22:30:39 2018 +0100

only build for devel and master

commit 9e97a08
Author: ppxasjsm antonia.mey@fu-berlin.de
Date: Tue Oct 16 22:22:13 2018 +0100

adding pygraphviz

commit dba977b
Author: ppxasjsm antonia.mey@fu-berlin.de
Date: Tue Oct 16 22:16:23 2018 +0100

matplotlib 1.5

commit 787f1ba
Author: ppxasjsm antonia.mey@fu-berlin.de
Date: Tue Oct 16 22:11:01 2018 +0100

welcome to conda dependency hell

commit d61ab1b
Author: ppxasjsm antonia.mey@fu-berlin.de
Date: Tue Oct 16 21:56:01 2018 +0100

adding pyqt4 dependcy to travis

commit fe3bd91
Author: ppxasjsm antonia.mey@fu-berlin.de
Date: Tue Oct 16 17:35:56 2018 +0100

are you a valid yml?

commit 67ee935
Author: ppxasjsm antonia.mey@fu-berlin.de
Date: Tue Oct 16 17:28:58 2018 +0100

are you a valid yml?

commit 7d5a346
Author: ppxasjsm antonia.mey@fu-berlin.de
Date: Tue Oct 16 17:02:45 2018 +0100

ugh travis again

commit fa24ec7
Author: ppxasjsm antonia.mey@fu-berlin.de
Date: Tue Oct 16 17:00:43 2018 +0100

ugh travis

commit 20e1a55
Author: ppxasjsm antonia.mey@fu-berlin.de
Date: Tue Oct 16 16:58:22 2018 +0100

fixing Pep* convention and trailing whitespaces issue

commit 7f3ace4

@davidlmobley
Copy link
Member

Closing this; maintenance moved to github.com/OpenFreeEnergy/Lomap.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants