Can't run fastqc in cmd windows
1
0
Entering edit mode
5.7 years ago

Hi, I installed fastqc on windows from http://www.bioinformatics.babraham.ac.uk/projects/fastqc/. i can run it from the bat file, but I can not run it from command line. I continue to have this error: "'fastqc' is not recognized as an internal or external command,operable program or batch file.". Also, I added this variable to my windows path. Thanks

fastq windows • 8.7k views
ADD COMMENT
0
Entering edit mode

By opening a terminal window (Windows key --> Command Prompt). Are you referring to not having it pop open the GUI, which it does by default?

ADD REPLY
0
Entering edit mode

Of course, but when I do this, I get this error: "'fastqc' is not recognized as an internal or external command, operable program or batch file." I edited the post to clarify the issue.

ADD REPLY
3
Entering edit mode
5.7 years ago
GenoMax 147k
Dir_with_FastQC>java -Xmx250m -classpath .;./sam-1.103.jar;./jbzip2-0.9.jar uk.ac.babraham.FastQC.FastQCApplication ju.fq
Started analysis of ju.fq
Analysis complete for ju.fq

In this case ju.fq is the file I am analyzing.

ADD COMMENT
0
Entering edit mode

This worked, thank you so much.

ADD REPLY
0
Entering edit mode

I'm sorry to bother again, but now I'm calling FASTQC in python, like this: check_output('C:\FastQC>java -Xmx250m -classpath .;.\sam-1.103.jar;.\jbzip2-0.9.jar uk.ac.babraham.FastQC.FastQCApplication' + alt.fq, shell=True). And now I continue to get this error: 'C:\FastQC' is not recognized as an internal or external command,operable program or batch file. Thanks

ADD REPLY
0
Entering edit mode

Someone else will need to comment on python but note that my example above showed running the program from inside FastQC directory (generated after downloading and uncompressing the program). You could add that directory to your $PATH and see if that works. Something like

set PATH=%PATH%;C:\path_to\FastQC_dir

This part C:\FastQC> is just the windows terminal prompt so can't be included in your call.

ADD REPLY
0
Entering edit mode

To deal with

"java.lang.outofmemoryerror thrown from the uncaughtexceptionhandler in thread"

I had to change "-Xmx250m" --> "-Xmx6144M" (from windows10 using the CLI)

ADD REPLY

Login before adding your answer.

Traffic: 2376 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