4 Usage of Lexique and Parti_simp
We give several examples of Lexique, to show how use its
specific syntax. These examples
are used on the DNA sequence of λ−phage, in file
lambda.seq, which is known to show strong
signals of segmentation [Chu92, Chu89, Gué00].
In connection with Lexique, we give examples of computation and
manipulation of partitionnings.
We load the sequence.
- We want to part this sequence such that a segment is described
by a letter, and its value is the number of occurences of this
lx1.read_str('0:a 1:c 2:g 3:t')
- We draw the even-numbered partitions.
ps1.filter(lambda x: len(x)%2==0).draw_nf("lambda1.ps")
- We cluster the segments described by c or g, and
the ones described by a or t, and sort the new
Parti_simp following the number of segments. We draw the
20 first partitions of this new Parti_simp.
- We want to partition on comparing the occurences in c
and g versus the ones in a and t.