Extracting columns from alignments for motifs