| 1 |
fastqc for Debian |
| 2 |
----------------- |
| 3 |
|
| 4 |
You can run FastQC in one of two modes, either as an interactive graphical application |
| 5 |
in which you can dynamically load FastQ files and view their results. |
| 6 |
|
| 7 |
Alternatively you can run FastQC in a non-interactive mode where you specify the files |
| 8 |
you want to process on the command line and FastQC will generate an HTML report for |
| 9 |
each file without launching a user interface. This would allow FastQC to be run as |
| 10 |
part of an analysis pipeline. |
| 11 |
|
| 12 |
Configuration |
| 13 |
------------- |
| 14 |
|
| 15 |
Configuration files have been placed in /etc/fastqc/Configuration |
| 16 |
|
| 17 |
|
| 18 |
Running FastQC Interactively |
| 19 |
---------------------------- |
| 20 |
|
| 21 |
A wrapper is installed into /usr/bin/fastqc |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
Running FastQC as part of a pipeline |
| 26 |
------------------------------------ |
| 27 |
To run FastQC non-interactively you should use the fastqc wrapper script to launch |
| 28 |
the program. |
| 29 |
|
| 30 |
To run non-interactively you simply have to specify a list of files to process |
| 31 |
on the commandline |
| 32 |
|
| 33 |
fastqc somefile.txt someotherfile.txt |
| 34 |
|
| 35 |
You can specify as many files to process in a single run as you like. If you don't |
| 36 |
specify any files to process the program will try to open the interactive application |
| 37 |
which may result in an error if you're running in a non-graphical environment. |
| 38 |
|
| 39 |
There are a few extra options you can specify when running non-interactively. Full |
| 40 |
details of these can be found by running |
| 41 |
|
| 42 |
fastqc --help |
| 43 |
|
| 44 |
By default, in non-interactive mode FastQC will create both a zipped copy of the |
| 45 |
QC report, and also extract this to create a folder which contains the report |
| 46 |
files ready to be viewed. If you only want to create the zipped file then you can |
| 47 |
add |
| 48 |
|
| 49 |
--noextract |
| 50 |
|
| 51 |
To the launch command to suppress the unzipping. |
| 52 |
|
| 53 |
If you want to save your reports in a folder other than the folder which contained |
| 54 |
your original FastQ files then you can specify an alternative location by setting a |
| 55 |
--outdir value: |
| 56 |
|
| 57 |
--outdir=/some/other/dir/ |
| 58 |
|
| 59 |
Customising the report output |
| 60 |
----------------------------- |
| 61 |
|
| 62 |
If you want to run FastQC as part of a sequencing pipeline you may wish to change the |
| 63 |
formatting of the report to add in your own branding or to include extra information. |
| 64 |
|
| 65 |
In the Templates directory you will find a file called 'header_template.html' which |
| 66 |
you can edit to change the look of the report. This file contains all of the header for |
| 67 |
the report file, including the CSS section and you can alter this however you see fit. |
| 68 |
|
| 69 |
If you want to add in your own logo or other image files to the reports then you can drop |
| 70 |
a png or jpg file into the Icons folder in the templates directory and this will be copied |
| 71 |
into the report folder for all reports generated by the program. You can refer to these |
| 72 |
icons using a relative URL (eg Icons/image.png) in the HTML template. Images placed |
| 73 |
outside the icons directory will not be copied. |
| 74 |
|
| 75 |
Whilst you can make whatever changes you like you should probably leave in place the |
| 76 |
<div> structure of the html template since later code will expect to close the main div |
| 77 |
which is left open at the end of the header. There is no facility to change the code in |
| 78 |
the main body of the report or the footer (although you can of course change the styling). |
| 79 |
|
| 80 |
The text tags @@FILENAME@@ and @@DATE@@ are placeholders which are filled in when the |
| 81 |
report it created. You can use these placeholders in other parts of the header if you |
| 82 |
wish. |
| 83 |
|
| 84 |
-- Andreas Tille <[email protected]> Wed, 07 Nov 2012 14:24:25 +0100 |