The present disclosure provides, among other aspects, codon-altered polynucleotides encoding Factor IX variants for expression in mammalian cells. In some embodiments, the disclosure also provides mammalian gene therapy vectors and methods for treating hemophilia B.