skDooley / TRACR_RNA

8 stars 7 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'pickles/allAssemblies.p' #1

Closed Rmmendoza closed 2 years ago

Rmmendoza commented 2 years ago

Dear Dr. Dooley,

Good day. I am trying to run your scripts to find TracrRNA from my bacterial genomes. I have just started running the scripts, but I found an error that says: FileNotFoundError: [Errno 2] No such file or directory: 'pickles/allAssemblies.p'.

FileNotFoundError Traceback (most recent call last)

in 20 theDate = date.today() 21 print("Ready to dump") ---> 22 dump(allAssemblies,open("pickles/allAssemblies.p","wb")) 23 print("Number of assemblies on %s: %i" % (theDate, len(allAssemblies))) FileNotFoundError: [Errno 2] No such file or directory: 'pickles/allAssemblies.p' I checked the pickles directory and true enough the only file there is the CasTree.p. May I know where can I get the allAssemblies.p? And if there's any, kindly let me know if I'm doing something wrong hence the error. Thank you very much for your help.
skDooley commented 2 years ago

Hi Remilyn,

That line is trying to write that file ('wb'). It looks like wherever your notebook is running from doesn't have direct access to the pickles directory. Use import os os.chdir()

or

%%bash mkdir pickles

If you have any other problems or questions, feel free to email me directly @.***

On Tue, Aug 16, 2022, 9:52 PM Remilyn Mendoza @.***> wrote:

Dear Dr. Dooley,

Good day. I am trying to run your scripts to find TracrRNA from my bacterial genomes. I have just started running the scripts, but I found an error that says: FileNotFoundError: [Errno 2] No such file or directory: 'pickles/allAssemblies.p'.

FileNotFoundError Traceback (most recent call last) in 20 theDate = date.today() 21 print("Ready to dump") ---> 22 dump(allAssemblies,open("pickles/allAssemblies.p","wb")) 23 print("Number of assemblies on %s: %i" % (theDate, len(allAssemblies)))

FileNotFoundError: [Errno 2] No such file or directory: 'pickles/allAssemblies.p'

I checked the pickles directory and true enough the only file there is the CasTree.p. May I know where can I get the allAssemblies.p? And if there's any, kindly let me know if I'm doing something wrong hence the error.

Thank you very much for your help.

— Reply to this email directly, view it on GitHub https://github.com/skDooley/TRACR_RNA/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBNNRQVOVVHO4EWSQR4ULDVZRHVTANCNFSM56X4XFXQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>