We present an approach to the gene identification phase of positional cloning that combines sparse sampling of DNA sequences from large genomic regions with computational analysis. We call the method "software trapping." The goal is to find coding exons while avoiding massive DNA sequence determination and contig assembly. Instead, rapid sequence sampling is combined with exon screening software such as a newly developed package called XPOUND to identify coding sequences. We have tested the approach using a set of model genomic sequences with known intron/exon structures as well as with bona fide P1 genomic clones. The results suggest that the strategy is a useful complement to other methods for finding genes in poorly characterized regions of genomes.