sgToPdb conversion