from typing import Tuple
from typing import List


def remove_gaps(seq: str) -> Tuple[str, List[int]]:
    """Remove gaps in the given sequence."""
    seqout, idx = "", []
    for i, char in enumerate(seq):
        if char != "-":
            seqout += char
            idx.append(i)
    return seqout, idx