====== FASTQC Analysis ======
So, you will be working with Illumina sequence data, and you are interested in data quality, and particularly in your sequencing error expressed as [[general:bioseqanalysis:sequencequalities|base quality values]]. This is one way to look at the data.
{{ :general:bioseqanalysis:images:fastqc.png?600 |}}
Example output of a FASTQC analysis taken from the [[https://www.bioinformatics.babraham.ac.uk/projects/fastqc/|software homepage]]
- Identify the read set that you want to analyse. :!: Make sure that you have a [[general:bioseqanalysis:sequencequalities#storing_base_quality_information|fastq]] formatIn the case you are having a paired end library layout, is convention that you analyse forward and reverse reads separately, since their quality typically varies considerably. You can use samtools to split your readset into forward and reverse reads in the case you are having both in one file
- Install FASTQC using [[general:computerenvironment:conda|Anaconda]]
- Use the fastq file as input for a [[https://www.bioinformatics.babraham.ac.uk/projects/fastqc/|FASTQC]] analysis
After installing FASTQC in its own conda environment, activate the new environment with the corresponding [[https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf|conda command]]. Now you can call FASTQC by simply typing
fastqc filename.fq -o /path/to/output/directory
This will generate a html file which you can copy to your local computer using scp. We made a short [[https://youtu.be/vhPFzSJEP2U|video]] that explains you how to do this.
- Open the html output files with any browser. With your results try to answer the following questions:
- What kind of information do you get after running FASTQC?
- Try to make a statement about the quality of your sequencing run.
- Take a look at the overrepresented sequences, and overrepresented Kmers report. Interpret the results and reconcile with your expectation. In case you have no expectation, make sure to discuss with the tutors.
- Perform an end trimming of the sequencing reads using [[http://www.usadellab.org/cms/?page=trimmomatic|Trimmomatic]]. What kind of information do you need to perform this analysis step? The [[:general:computerenvironment:software:trimmomatic|Trimmomatic page]] may provide some initial help.
- First you need to extract the sequence of the adapter from FASTQC and save as a fasta file using a texteditor like nano:
touch adaptator.fasta
nano adaptator.fasta
- It should have the format you know from fasta files with a /1 for the forward adapter and a /2 for the reverse. The prefix has to be the same in both identifiers.
>Truseq/1
forward adapter-sequence from FASTQC
>Truseq/2
reverse adapter-sequence from FASTQC
- Make sure that you are in the conda environment that contains Trimmomatic and document the command you use to run it. Discuss with the group or the tutors if you are unsure about the parameters.