How a property is financed does not affect your rights as a tenant. In San Francisco, only an owner who is moving in can ask you to leave. However, depending on how long you have been a tenant, whether there are children in the house, whether you have a lease - all these factors will affect your rights to stay.
Read on line about tenant's rights, or call the rent board- all these are free, will give you a good starting point.
415 860 0765