Exhibit 5.1

| | |
SOPHiA GENETICS SA Rue du Centre 172 1025 St-Sulpice (VD) Switzerland | | Homburger AG Prime Tower Hardstrasse 201 CH-8005 Zurich homburger.ch T +41 43 222 10 00 |
July 19, 2021
SOPHiA GENETICS SA – Registration Statement on Form F-1
Ladies and Gentlemen
We have acted as special Swiss counsel to SOPHiA GENETICS SA, a stock corporation incorporated under the laws of Switzerland (the Company), in connection with the filing of a registration statement on Form F-1, including the prospectus set forth therein (the Registration Statement), to be filed with the United States Securities and Exchange Commission (the SEC) on the date hereof for the purpose of registering under the United States Securities Act of 1933, as amended (the Securities Act), the offer and sale of up to 14,950,000 ordinary shares of the Company, each with a nominal value of CHF 0.05 (the Ordinary Shares), including any ordinary shares with a nominal value of CHF 0.05 each to be issued and sold, if and to the extent such option is exercised, to the underwriters pursuant to the over-allotment option granted by the Company to the underwriters. As such counsel, we have been requested to give our opinion as to certain legal matters of Swiss law.
Capitalized terms used but not defined herein shall have the meaning ascribed to them in the Documents (as defined below).
This opinion is confined to and given on the basis of the laws of Switzerland in force at the date hereof. Such laws and the interpretation thereof are subject to change. In the absence of explicit statutory law, we base our opinion solely on our independent professional judgment. This opinion is also confined to the matters stated herein and is not to be read as extending, by implication or otherwise, to any document referred to in the Documents (other than listed below) or any other matter.