FastQC command line usage
2
0
Entering edit mode
2.1 years ago

Hi,

I am supposed to run FastQC in linux server (I don't have chance to use graphical user interface) how can I use command line for running fastqc for my sequences? Thanks in advance.

command-line FastQC linux CentOS • 20k views
ADD COMMENT
0
Entering edit mode

i dont have chance to use graphical user interface

You will need to download the resulting html files to view after you run the command below.

ADD REPLY
1
Entering edit mode
2.1 years ago
nkabo ▴ 80

After installing FastQC, you can simply run the code below:

fastqc --noextract --nogroup -o fastqc *.fastq.gz
ADD COMMENT
1
Entering edit mode

Be careful about recommending --nogroup. If there are long reads (e.g. 300 cycles) then the plots become unwieldy to view.

ADD REPLY
0
Entering edit mode

Thank you for the comment. I usually use the code above, since I mostly work on short reads.

ADD REPLY
0
Entering edit mode
9 months ago
Kermit ▴ 90

The FastQC installation process for Linux and Windows is just to download the zip file from their website. Then you can treat the unzipped FastQC/fastqc file as both a GUI and CLI program.

It needs Java as well: "README.txt: tested on Windows, MacOSX and Linux running the Oracle v1.6 to 1.8 JREs." JDK 19 worked fine for me

$ FastQC/fastqc -t 2 file_1.fq.gz file_2.fq.gz

  Started analysis of file_1.fq.gz
  Started analysis of file_2.fq.gz

  Approx 5% complete for file_1.fq.gz
  Approx 5% complete for file_2.fq.gz

Here -t creates 1 thread per file at 250MB of memory each

If you don't specify --outdir then it will create output reports in the same folder as the input files


For macOS Big Sur 11.7.2, I could not figure out how to run it from the command line and the UI file browser did not work either

ADD COMMENT

Login before adding your answer.

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