I think thats pretty much the best analogy . Just like other mental disorders, evidence is inconclusive on what the biological/environmental mix is, but there definitely is an environmental component, shown by analysis of twin separated at birth studies.
As can be seen from scripter's database there is NO biological component to the practice of sodomy.
This is purely a mental disorder caused by trauma.