| 1 | <html> |
| 2 | |
| 3 | <head> |
| 4 | <title>Duplicate Sequences</title> |
| 5 | <style type="text/css"> |
| 6 | body { |
| 7 | font-family: sans-serif; |
| 8 | } |
| 9 | </style> |
| 10 | </head> |
| 11 | <body> |
| 12 | <h1>Duplicate Sequences</h1> |
| 13 | <h2>Summary</h2> |
| 14 | <p> |
| 15 | In a diverse library most sequences will occur only once in the final |
| 16 | set. A slightly elevated level of duplication may indicate a very high |
| 17 | level of coverage of the target sequence, but a high level of duplication |
| 18 | is more likely to indicate some kind of enrichment bias (eg PCR over |
| 19 | amplification). |
| 20 | </p> |
| 21 | <p> |
| 22 | This module counts the degree of duplication for every sequence in |
| 23 | a library and creates a plot showing the relative number of sequences |
| 24 | with different degrees of duplication. |
| 25 | </p> |
| 26 | <p><img src="duplication_levels.png"></p> |
| 27 | <p> |
| 28 | To cut down on the memory requirements for this module only sequences |
| 29 | which first appear in the first 100,000 sequences in each file are analysed, |
| 30 | and these are then tracked through the entire dataset. This should be enough |
| 31 | to get a good impression for the duplication levels in the whole file. |
| 32 | Each sequence is tracked to the end of the file to give a representative |
| 33 | count of the overall duplication level. |
| 34 | To cut down on the amount of information in the final plot any sequences |
| 35 | with more than 10 duplicates are placed into grouped bins to give a clear |
| 36 | impression of the overall duplication level without having to show each |
| 37 | individual duplication value. |
| 38 | </p> |
| 39 | |
| 40 | <p> |
| 41 | Because the duplication detection requires an exact sequence match over |
| 42 | the whole length of the sequence, any reads over 50bp in length are truncated |
| 43 | to 50bp for the purposes of this analysis. Even so, longer reads are more |
| 44 | likely to contain sequencing errors which will artificially increase the |
| 45 | observed diversity and will tend to underrepresent highly duplicated sequences. |
| 46 | </p> |
| 47 | |
| 48 | <p> |
| 49 | The plot shows the proportion of the library which is made up of sequences in |
| 50 | each of the different duplication level bins. The x axis is the degree of |
| 51 | duplication, and the y axis shows the proportion of the library which is made |
| 52 | up of reads with that level of duplication. |
| 53 | </p> |
| 54 | |
| 55 | <p> |
| 56 | In a properly diverse library most sequences should fall into the far left of the |
| 57 | plot . A general level of enrichment, indicating broad |
| 58 | oversequencing in the library will tend to flatten the line, lowering the low end and |
| 59 | generally raising other categories. More specific enrichments of subsets, or the |
| 60 | presence of low complexity contaminants will tend to produce spikes towards the right |
| 61 | of the plot. |
| 62 | </p> |
| 63 | |
| 64 | <p> |
| 65 | The module also calculates an expected overall loss of sequence were the library to be |
| 66 | deduplicated. This headline figure is shown at the top of the plot and gives a reasonable |
| 67 | impression of the potential overall level of loss. |
| 68 | </p> |
| 69 | |
| 70 | <h2>Warning</h2> |
| 71 | <p> |
| 72 | This module will issue a warning if non-unique sequences make up more than |
| 73 | 30% of the total. |
| 74 | </p> |
| 75 | |
| 76 | <h2>Failure</h2> |
| 77 | <p> |
| 78 | This module will issue a error if non-unique sequences make up more than |
| 79 | 50% of the total. |
| 80 | </p> |
| 81 | |
| 82 | <h2>Common reasons for warnings</h2> |
| 83 | <p> |
| 84 | The underlying assumption of this module is of a diverse unenriched library. Any deviation |
| 85 | from this assumption will naturally generate duplicates and can lead to warnings or errors |
| 86 | from this module. |
| 87 | </p> |
| 88 | <p> |
| 89 | In general there are two potential types of duplicate in a library, technical duplicates |
| 90 | arising from PCR artefacts, or biological duplicates which are natural collisions where different |
| 91 | copies of exactly the same sequence are randomly selected. From a sequence level there is no |
| 92 | way to distinguish between these two types and both will be reported as duplicates here. |
| 93 | </p> |
| 94 | <p> |
| 95 | A warning or error in this module is simply a statement that you have exhausted the diversity |
| 96 | in at least part of your library and are re-sequencing the same sequences. In a supposedly diverse |
| 97 | library this would suggest that the diversity has been partially or completely exhausted and that |
| 98 | you are therefore wasting sequencing capacity. However in some library types you will naturally |
| 99 | tend to over-sequence parts of the library and therefore generate duplication and will therefore |
| 100 | expect to see warnings or error from this module. |
| 101 | </p> |
| 102 | <p> |
| 103 | In RNA-Seq libraries sequences from different transcripts will be present at wildly different levels |
| 104 | in the starting population. In order to be able to observe lowly expressed transcripts it is therefore |
| 105 | common to greatly over-sequence high expressed transcripts, and this will potentially create large |
| 106 | set of duplicates. This will result in high overall duplication in this test, and will often produce |
| 107 | peaks in the higher duplication bins. This duplication will come from physically connected regions, and |
| 108 | an examination of the distribution of duplicates in a specific genomic region will allow the |
| 109 | distinction between over-sequencing and general technical duplication, but these distinctions are not |
| 110 | possible from raw fastq files. A similar situation can arise in highly enriched ChIP-Seq libraries |
| 111 | although the duplication there is less pronounced. Finally, if you have a library where the sequence |
| 112 | start points are constrained (a library constructed around restriction sites for example, or an |
| 113 | unfragmented small RNA library) then the constrained start sites will generate huge dupliction levels |
| 114 | which should not be treated as a problem, nor removed by deduplication. In these types of library |
| 115 | you should consider using a system such as random barcoding to allow the distinction of technical |
| 116 | and biological duplicates. |
| 117 | </p> |
| 118 | |
| 119 | </body> |
| 120 | </html> |