A gene can function as a replicator only in certain environments. By analogy with an ecological ‘niche’ (the set of environments in which an organism can survive and reproduce), I shall also use the term niche for the set of all possible environments which a given replicator would cause to make copies of it.

