Genetics is crude, but neuroscience goes directly to work on the brain, and the mind follows.
No one knows exactly where thought comes from, but it can be said that thought comes from the same place as whatever it is that beats our heart... it comes from being alive.