Add gaps in sequences of ‘all_sequences’ whose indexes is in ‘seq_indexes’. A gap is defined as a NAN array element in a given sequence. Gaps positions are given by ‘alignment’.
all_sequences (list(2D array)) –
seq_indexes (list(int)) –
alignment (list(int)) – result from needleman_wunsch()