Unable To Go Through Biopython'S Motif Tutorial - Ioerror
2
1
Entering edit mode
12.5 years ago
Olivier ▴ 440

Hello

I'm trying the Sequence motif analysis tutorial in the Biopython cookbook and it's not working. Can someone help? Here's how it is:

from Bio import Motif
arnt = Motif.read(open("Arnt.sites"), "jaspar-sites")
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    arnt = Motif.read(open("Arnt.sites"), "jaspar-sites")
IOError: [Errno 2] No such file or directory: 'Arnt.sites'
biopython motif • 3.1k views
ADD COMMENT
2
Entering edit mode

as it says: the file 'Arnt.sites' doesn't exist in your current working directory.

ADD REPLY
0
Entering edit mode

You're right Pierre. But its location is not mentioned in the tutorial. Do you have an idea what "Arnt.sites" and "jaspar-sites" refer to? It's about JASPAR-formatted motifs but I don't know how to carry on.

ADD REPLY
5
Entering edit mode
12.5 years ago

These Arnt.sites and SRF.pfm from the BioPython manual are from the JASPAR database. Somewhere in here: http://jaspar.genereg.net/html/DOWNLOAD/

These are just example files to fill the manual, you should make your own in case you're doing your own analysis.

ADD COMMENT
1
Entering edit mode
12.5 years ago

add the Arnt.sites file to your work directory

ADD COMMENT
0
Entering edit mode

Could you please tell me where I can get this file? I can't really find it on the JASPAR database... unless it's something like this 'MA0001.1.sites'? Thanks

ADD REPLY
0
Entering edit mode

You should definitely try those.

ADD REPLY

Login before adding your answer.

Traffic: 2169 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6