ASPL Manual v 1.00
© 2024 by SetSphere.COM


7. 9
   g%\ aligns two sequences based on their subgroups and the elements difference

 

logo

g%\ a1 a2 | a1 a2 a3       where a1 a2 | a1 a2 a3 are set variables

g%\`mtm~ a1 a2 | a1 a2 a3

g%\

When specified by itself then the operation is performed on the object on top of the stack and the one that is one below it

seqop  seqoid  23  notcommu        ins:H_H_H  text:alignment

●  Operator g%\ aligns two sequences based on their subgroups and the elements difference

Use the operator g%\ to align two set variables according to their difference and display their alignment on the terminal. It is assumed that each set variable has one group label, otherwise the first group (in the set variable) is explicitly implied. If you specify two set variables that have the same named group label, then you need to labinate the operator. If the operator g%\ is followed by three set variables then the alignment is performed on the datasets resulted by concatenating the third variable to the first and to the second. Hence this is similar to performing an alignment after joining with an "and" operation the first variable and the third variable, and the second variable and the third variable. You can change the sequence alignment algorithm selectively. The sequence alignment can be selected: the command sequencing lcs selects the algorithm for the longest common sequence, and the command sequencing ssa selects the algorithm for the sequence similarity analysis.

 

g%\ EXAMPLE
In this example we will compare the subdirectories and files in two directories by displaying their sequence alignment according to the difference of the checksums (of their subgroups and elements). We will start ASPL by loading the WS1 workspace, then we will issue the command g%\ to display the alignment of the difference between the two set variables b1 and b2 such that the checksums are similar.

 

g%\ OPERATION

aspl WS1
    (start ASPL loading the sample workspace WS1)

Notice that the tick `c= is reverted for the difference operation

①  aspl> g%\`c= b1 b2
    (align the difference between b1 and b2 such that their subgroup and element checksums are different)

②  aspl> g%\`c~ b1 b2
    (align the difference between b1 and b2 such that their subgroup and element checksums are similar)

 

● Tickable Predicates for g%\

This g%\ is tickable with predicates that are shown in the following table:

       a yellow note
g%\`_  aligns two sequences based on their subgroups and the elements difference 
g%\`c=  aligns two sequences based on their subgroups and the elements difference such that they have the same checksum 
g%\`c~  aligns two sequences based on their subgroups and the elements difference such that they have different checksums 
g%\`c~~  aligns two sequences based on their subgroups and the elements difference such that they have all over different checksums 
g%\`h=  aligns two sequences based on their subgroups and the elements difference such that they have the same entropy 
g%\`h~  aligns two sequences based on their subgroups and the elements difference such that they have different entropies 
g%\`h~~  aligns two sequences based on their subgroups and the elements difference such that they have all over different entropies 
g%\`mtm=  aligns two sequences based on their subgroups and the elements difference such that they have the same make time 
(C)2024 ASPL Inc.