You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Merge intermine-bio package into intermine-ws-python package #12
I don't see a utility in keeping these separate. Just making another dependency. (@justinccdev may disagree?).
Let's merge the functionality into the main intermine package and delete this repo.
What does the bio package do? Here are the docs:
# Get all sequences for proteins on "h", "r", "eve", "bib" and "zen":
from intermine.webservice import Service
from interminebio import SequenceQuery
s = Service("www.flymine.org/query")
q = SequenceQuery(s, "Gene")
syms = ["h", "r", "eve", "bib", "zen"]
print q.select_sequence("proteins").where(s.model.Gene.symbol == syms).fasta()
# Process the locations of these genes one at a time:
for line in q.select_sequence("Gene").where(s.model.Gene.symbol == syms).bed():
process(line)
I've added the hacktoberfest label to this issue. Note it's probably better to get started by trying some of the other hacktoberfest issues on this repo before you try this one.
@yochannah
I think somewhere along the line the code in interminebio has been changed so much that it doesn't comply with the one in the main intermine repository. I tried changing it to python3, stil no luck.
I believe that the links that it tries to open have been updated, which raise errors.
I'll still try to pinpoint those errors and try to fix them.
@mbasil09 I also have a confession to make - I'm not sure how to install intermine bio to test it myself! It doesn't have install docs I can see (sigh) and best guess was to clone it then run python setup.py - do you mind me asking what you did to get it working?
I couldn't get it to install either, the only workaround I found till now was to use it from the cloned directory. We are able to import all the methods from the interminebio directory.
Also, all of it is written in python2, so you might want to convert it to python3.
Activity
[-]Merge in intermine-bio into intermine[/-][+]Merge intermine-bio [/+][-]Merge intermine-bio [/-][+]Merge intermine-bio package into intermine-ws-python package[/+]yochannah commentedon Oct 23, 2019
I've added the hacktoberfest label to this issue. Note it's probably better to get started by trying some of the other hacktoberfest issues on this repo before you try this one.
mbasil09 commentedon Dec 22, 2019
@yochannah
I would like to try this.
yochannah commentedon Dec 23, 2019
@mbasil09 Amazing - please go ahead! 😻
mbasil09 commentedon Dec 27, 2019
@yochannah
I think somewhere along the line the code in interminebio has been changed so much that it doesn't comply with the one in the main intermine repository. I tried changing it to python3, stil no luck.
I believe that the links that it tries to open have been updated, which raise errors.
I'll still try to pinpoint those errors and try to fix them.
yochannah commentedon Dec 27, 2019
that sounds possible, and also like a really good reason to get it merged back into the main package. Thank you so much for tackling this! 😍
mbasil09 commentedon Dec 31, 2019
@yochannah
Any idea where the fasta or bed or gf3 files are stored.
The URLs used in interminebio are expired and give error404.
yochannah commentedon Dec 31, 2019
@mbasil09 I can probably find them - where in interminebio are the broken links?
mbasil09 commentedon Dec 31, 2019
@yochannah
It tries to open this link (which doesn't exist):
http://www.flymine.org/query/service/check/query.fasta
it's in this file in the interminebio repository:
interminebio/iterators.py (Line 92)
mbasil09 commentedon Dec 31, 2019
It happens on running this code (taken from the docs of interminebio):
from intermine.webservice import Service
from interminebio import SequenceQuery
s = Service("www.flymine.org/query")
q = SequenceQuery(s, "Gene")
syms = ["h", "r", "eve", "bib", "zen"]
q=q.select_sequence("proteins").where(s.model.Gene.symbol == syms)
print(q.fasta())
yochannah commentedon Dec 31, 2019
right, I see!
Try taking a look at iodocs (click on flymine) - I suspect it's looking for the gff and fasta endpoints
http://iodocs.apps.intermine.org/
yochannah commentedon Dec 31, 2019
@mbasil09 I also have a confession to make - I'm not sure how to install intermine bio to test it myself! It doesn't have install docs I can see (sigh) and best guess was to clone it then run
python setup.py- do you mind me asking what you did to get it working?mbasil09 commentedon Dec 31, 2019
I couldn't get it to install either, the only workaround I found till now was to use it from the cloned directory. We are able to import all the methods from the interminebio directory.
Also, all of it is written in python2, so you might want to convert it to python3.
yochannah commentedon Dec 31, 2019
I think that's a good idea - today's literally the day that python 2 retires 🤣
https://pythonclock.org/