translate_position translate the scambled position in the alignment to the original position or vice versa

translate_position(position, positions_table, to = "original")

Arguments

position

the position to translate

positions_table

the table containing the original and scrambled positions

to

the direction to translate, either "original" or "scrambled"

Value

the translated position