average_cols_aap: Replaces gaps with the average of the column
Description
This function will deal with gaps in the Amino Acid Property encoding scheme
It replaces gaps with the average in the column for each group, provided the column is highly occupied for that group.
It will only average out over columns that have high percentage of gaps
It will remove all other columns containing gaps.
Usage
average_cols_aap(x,y)
Arguments
x
Matrix representation of alignment generated by convert\_aln\_AAP
y
Vector or factor that shows the group representation for each sequence in the alignment