This is the manual of Manna, a tool that allows to perform multiple alignments of (repeat) annotations. For example it may be used to align annotated TE insertions in piRNA clusters.
The script requires a repeat annotation for each sequence of interest, ideally the Repeatmasker output should be used (suffix '.out').
Alternatively, to test the script with some simple toy examples a single column input (1 feature per line) will be accepted ('--input-format toy').
Python is required for Manna.
Installation is recommended by using subversion.
Go to a folder where you would like to install the tool and type the command provided at the code-tab https://sourceforge.net/p/manna/code
For example:
svn checkout https://svn.code.sf.net/p/manna/code/ manna-code
In the example below, we use repeatmasker outputs for piRNA clusters 1 from three different samples (e.g. Drosophila strains 1, 2 and 3) and align them with the default parameters.
python manna-code/cluster-msa.py --clusters "sample1_cluster1.fasta.out,sample2_cluster1.fasta.out,sample3_cluster1.fasta.out" --sample-IDs "sample1,sample2,sample3" --cluster-ID "cluster1" > cluster1.msa
Depending on the 'output-detail' parameter, the first 10 lines of the final alignment that is written into 'cluster1.msa' looks like this:
#Score: 18098.060000000005
#Samples sample1 sample2 sample3
#ClusterID cluster1
#TE-fam
ROXELEMENT ROXELEMENT ROXELEMENT
INE1 INE1 -
INE1 INE1 INE1
INE1 INE1 INE1
INE1 INE1 INE1
BS3 BS3 BS3
#Score: 18098.060000000005
#Samples sample1 sample2 sample3
#ClusterID cluster1
#TE-fam length div
ROXELEMENT 235.0 25.5 ROXELEMENT 235.0 25.5 ROXELEMENT 235.0 25.5
INE1 52.0 11.8 INE1 52.0 11.8 - - -
INE1 70.0 14.7 INE1 70.0 14.7 INE1 70.0 14.7
INE1 115.0 21.0 INE1 115.0 21.0 INE1 115.0 23.5
INE1 123.0 18.2 INE1 123.0 18.2 INE1 123.0 18.2
BS3 170.0 4.1 BS3 170.0 4.7 BS3 168.0 3.6
#Score: 18098.060000000005
#Samples sample1 sample2 sample3
#ClusterID cluster1
#TE-fam clu_start length div score 'te_strand:te_start:te_end
ROXELEMENT 487.0 235.0 25.5 958.0 '-:4115..4357 ROXELEMENT 487.0 235.0 25.5 958.0 '-:4115..4357 ROXELEMENT 487.0 235.0 25.5 880.0 '-:4115..4357
INE1 722.0 52.0 11.8 228.0 '-:2..45 INE1 722.0 52.0 11.8 228.0 '-:2..45 - - - - - -
INE1 982.0 70.0 14.7 390.0 '+:499..566 INE1 982.0 70.0 14.7 390.0 '+:499..566 INE1 982.0 70.0 14.7 367.0 '+:499..566
INE1 1052.0 115.0 21.0 397.0 '-:213..335 INE1 1052.0 115.0 21.0 397.0 '-:213..335 INE1 1052.0 115.0 23.5 365.0 '-:213..335
INE1 1101.0 123.0 18.2 448.0 '-:285..395 INE1 1101.0 123.0 18.2 448.0 '-:285..395 INE1 1101.0 123.0 18.2 417.0 '-:285..395
BS3 1273.0 170.0 4.1 1447.0 '+:472..641 BS3 1273.0 170.0 4.7 1427.0 '+:472..641 BS3 1273.0 168.0 3.6 1377.0 '+:472..639