16 Measuring Complexity
The genome consists of many regions that have varying complexity. Some are full of repeating elements, some are seemingly random, and some code for functions. Measures of complexity of strings can lead to insights into functionality of portions of the genome. This chapter will explore several simple methods of measuring complexity.
16.1 Linguistic Complexity
Linguistic complexity is a loosely defined term that measures variations in a string. For a text string, this measure can be the ratio of the number of unique words to the total number of words. Obviously, if no words are repeated, then this ratio is 1. If a large text contains very few unique words, then this measure becomes quite small. This is an easy program to ...
Get Python for Bioinformatics now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.