Genome-wide selection components analysis was performed on a fish species, Syngnathus scovelli, that exhibits male pregnancy to understand patterns of sexual and viability selection. RAD-seq was used to genotype over 300,000 SNPs in adult males, females and embryos. Both pairwise FST comparisons and maximum likelihood approaches identified genomic regions under sexual and sex-biased viability selection, though few regions overlapped between the analyses. Functional analysis found the selected regions were involved in similar biological processes despite targeting different loci, showing genome-wide patterns of selection. Selection components analysis provides a detailed view of how sexual and viability selection have shaped the genome in this unique fish.