Generate basemask from samplesheet