Membrane proteins are clinically relevant, yet their crystal structures are rare. Models of membrane proteins are typically built from template structures with low sequence identity to the target sequence, using a sequence-structure alignment as a blueprint. This alignment is usually made with programs designed for use on soluble proteins. Biological membranes have layers of varying hydrophobicity, and membrane proteins have different amino-acid substitution preferences from their soluble counterparts. Here we include these factors into an alignment method to improve alignments and consequently improve membrane protein models.