I would like to access the indices of the alignment data that is returned from the Julia pairalign function in BioAlignments.jl to know where the alignment occurred in context of the original sequences.
using BioAlignments
using BioSequences
scoremodel = AffineGapScoreModel(EDNAFULL, gap_open=-5, gap_extend=-1);
my_alignment = pairalign(LocalAlignment(),dna"ATATTAGGTATTGATTATTGTACGCGGCCCGGC" , dna"TTGATTATTGT", scoremodel)
alignment(my_alignment)
For example, a script like this will output an alignment object from which I can access the score via score() function. However I wish to know where, in the original sequences that I supplied as inputs, the alignment occurred and know how to call the variable storing this index. Could not seem to find this anywhere in the documentation.