In order to mask e.g. repeat regions when doing read mapping, the repeat regions have to be annotated on the reference sequences.
Because the masking is based on annotations, any kind of annotations can be selected for masking. This means that you can choose to e.g. only map against the genes in the genome, or only the exons. As long as the reference sequences contain the relevant information in the form of annotations, it can be masked.
To mask a reference sequence, first click the Include / exclude regions checkbox, and second click the Select annotation type (
) button.
This will bring up a dialog with all the annotation types of the reference sequences listed to the left. Select one or more annotation types and click Add (
) button. Then select at the bottom whether you wish to Include or Exclude these annotation types. If you include, it means that only the regions covered by the selected type of annotations will be used in the read mapping. If you exclude, it means that all of the reference sequences except the regions covered by the selected type of annotations will be used in the read mapping.
You can see an example in figure 18.50.
Figure 18.50: Masking for repeats. The repeat region annotation type is selected and excluded in the mapping.