sgXDecodeGeneFactory function

Factory for configuring a gene-dependent DecodeGene function.