sr320 / course-fish546-2016

6 stars 5 forks source link

trouble running FASTQC in jupyter #46

Closed yaaminiv closed 8 years ago

yaaminiv commented 8 years ago

I tried using -help to use FASTQC in jupyter but got this message:

message

I followed the installation instructions and unzipped the file in my applications folder.

applications folder

Is there something else I missed? I do have the interactive application, but I would like to try using it in the command line.

sr320 commented 8 years ago

@kubu4 - any experience with this?

kubu4 commented 8 years ago

That message implies that she should've downloaded this (the link below is the compiled version for OSX):

http://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.5.dmg

sr320 commented 8 years ago

Correct, but I do not think you can run the compiled version of the command line.

On Wed, Oct 19, 2016 at 3:10 PM kubu4 notifications@github.com wrote:

That message implies that she should've downloaded this (the link is the compiled version):

http://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.5.dmg

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/sr320/course-fish546-2016/issues/46#issuecomment-254955786, or mute the thread https://github.com/notifications/unsubscribe-auth/AEPHt18YLJJLf49inR8WhSVcsme11ghvks5q1pVDgaJpZM4KbN9x .

kubu4 commented 8 years ago

Oops, sorry, just saw her note below screenshot.

kubu4 commented 8 years ago

I think she needs to download the Windows/Linux zip file: http://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.5.zip

kubu4 commented 8 years ago

Also, that wouldn't be the proper command to invoke fastqc.

Fastqc usually installs in the system PATH. To verify this (and see the actual location of Fastqc): which fastqc

Be sure to make the proper adjustment for use in a Jupyter notebook (either by preceding command with a ! or using the bash magic %%bash in the cell).

The output from that command should be: /usr/local/bin/FastQC/fastqc

kubu4 commented 8 years ago

Assuming the which fastqc command output looks correct, she should just be able to type fastqc -help

kubu4 commented 8 years ago

Now that I've typed all of that out, I'm partly wrong. Do this:

  1. Download zip file.
  2. Move zip file to /usr/local/bin (sudo mv fastqc_v0.11.5.zip /usr/local/bin)
  3. Unzip file. (sudo unzip /usr/local/bin/fastqc_v0.11.5.zip)
  4. Remove .zip file (sudo rm /usr/local/bin/fastqc_v0.11.5.zip)
  5. Quit Terminal (quit it completely, not just close windows).
  6. Start Terminal.
  7. Verify installation: which fastqc
kubu4 commented 8 years ago

To add to this, she will need to shutdown her Jupyter notebook before trying this in her Jupyter notebook. Otherwise, Jupyter won't detect the changes to the system (that's why we have to completely shutdown Terminal after the "installation" in the previous post).

yaaminiv commented 8 years ago

thanks @kubu4 !

related question: I tried the !Applications/FastQC/fastqc -help command after seeing it in one of @sr320's notebooks. Why didn't it work in my notebook? Is it just because it wasn't downloaded correctly?

kubu4 commented 8 years ago

So, @yaaminiv, is it working?

I was distracted when I responding and just realized all the junk I typed up there was totally unnecessary.

I think the only thing you needed to do to resolve it was just download a different .zip file. Sorry for all the other stuff!

However, putting the files in the location I mentioned above (/usr/local/bin) means that you won't have to type the full path to the fastqc; you'll only need to type fastqc.

yaaminiv commented 8 years ago

Yes, it worked! I just unzipped the file you suggested and was able to successfully use the !Applications/FastQC/fastqc -help command. screen shot 2016-10-19 at 8 55 05 pm

sr320 commented 8 years ago

Just to clarify and re-open as other likely will have the same problem (As the instructions online are very, very bad)

If you are on a Mac and want to use FastQC at the command-line you need to install the Windows/Linux zip file: http://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.5.zip