1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
.. _quality_scores_plot:
.. index:: quality_scores_plot.py
*quality_scores_plot.py* -- Generates histograms of sequence quality scores and number of nucleotides recorded at a particular index
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
**Description:**
Two plots are generated by this module.
The first shows line plots indicating the average and standard deviations
for the quality scores of the input quality score file,
starting with the first nucleotide and ending with the the final
nucleotide of the largest sequence.
A second histogram shows a line plot with the nucleotide count for each
position, so that one may easily visualize how sequence length drops off.
A dotted line shows the cut-off point for a score to be acceptable (default
is 25).
A text file logging the average, standard deviation, and base count
for each base position is also generated. These three sections are comma
separated.
The `truncate_fasta_qual_files.py <./truncate_fasta_qual_files.html>`_ module can be used to create truncated
versions of the input fasta and quality score files. By using this module
to assess the beginning of poor quality base calls, one can determine
the base position to begin truncating sequences at.
**Usage:** :file:`quality_scores_plot.py [options]`
**Input Arguments:**
.. note::
**[REQUIRED]**
-q, `-`-qual_fp
Quality score file used to generate histogram data.
**[OPTIONAL]**
-o, `-`-output_dir
Output directory. Will be created if does not exist. [default: .]
-s, `-`-score_min
Minimum quality score to be considered acceptable. Used to draw dotted line on histogram for easy visualization of poor quality scores. [default: 25]
-v, `-`-verbose
Turn on this flag to disable verbose output. [default: True]
**Output:**
A .pdf file with the two plots will be created in the output directory
**Example:**
Generate plots and output to the quality_histograms folder
::
quality_scores_plot.py -q seqs.qual -o quality_histograms/
|