Genemania CyREST call stalled for over 30 mins

15 views
Skip to first unread message

nivedas...@gmail.com

unread,
Aug 15, 2019, 5:03:14 PM8/15/19
to cytoscape-helpdesk
Hi,

I am using Cytoscape's CyREST API call to run genemania for a list of about 750 genes. I see that for the same dataset Genemania regularly stalls for over 30 mins. This is a random occurrence as the dataset has previously run in about 12-14 mins.

I use the below script for the API call:

'''
join_genes = '|'.join(each_inp_list)

body = dict(attrLimit=str(att_limit), geneLimit=str(limit), genes=join_genes, organism=species)

get_genemania = requests.post('http://localhost:1234/v1/commands/genemania/search', json=body)
uploaded_list = get_genemania.json()
'''

where join_genes = input gene list separated by '|'
att_limit = 0
limit = 100
species = rat

Is there a way to improve performance? Can I change the API call in anyway for this improvement?

Thanks!

Ruth Isserlin

unread,
Aug 22, 2019, 12:13:58 PM8/22/19
to cytoscape-helpdesk
By default, the genemania command will search the web version of genemania.  Maybe the random slow down is related to slower network traffic at the time that you do your search.  Have you tried downloading the genemania Rat dataset to your computer and then adding offline=true to the above command to see if it eliminates the stalling?
Thanks, 
Ruth 

--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/32e35a1a-e1f3-4d6f-a672-b37e03ce1cea%40googlegroups.com.

nivedas...@gmail.com

unread,
Aug 22, 2019, 11:48:56 PM8/22/19
to cytoscape-helpdesk
Thanks! That does seem to be the cause of the delay
Reply all
Reply to author
Forward
0 new messages