Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Expression DB? #2899

Open
cbruno14 opened this issue May 15, 2024 · 1 comment
Open

Adding Expression DB? #2899

cbruno14 opened this issue May 15, 2024 · 1 comment
Labels
File System Relating to issues of writing or accessing file system

Comments

@cbruno14
Copy link

Hi I'm super new to PK-Sim (v 11.3) so I apologize if this is a really silly question, but I'm having a bad time trying to figure out how to upload a Human protein expression DB. I've downloaded the human gene expression file here, but when I go to Options --> Application and try to link the Human expression database I receive the following error:
The requested operation cannot be performed on a file with a user-mapped section open.

With the following Stack Trace:

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
   at OSPSuite.Serializer.Xml.XmlHelper.saveXmlObjectToFile(String fileName, Action`1 saveAction)
   at OSPSuite.Serializer.Xml.XmlHelper.saveXmlContentToFile(String xmlContent, String fileName)
   at PKSim.Infrastructure.Services.SettingsPersistor`1.Save(TSettings userSettings)
   at PKSim.Infrastructure.Services.UserSettingsPersistor.Save(IUserSettings userSettings)
   at PKSim.Presentation.Presenters.UserSettingsPresenter.SaveSettings()
   at PKSim.Presentation.Presenters.SettingsPresenter.saveSettings()
   at PKSim.Presentation.Presenters.SettingsPresenter.Initialize()
   at OSPSuite.Presentation.Core.ApplicationController.Start[TPresenter]()
   at OSPSuite.Presentation.UICommands.RunPresenterCommand`1.Execute()
   at OSPSuite.Presentation.UICommands.UICommandExtensions.ExecuteWithinExceptionHandler(IUICommand uiCommand, IEventPublisher eventPublisher, IChangePropagator changePropagator)

I was originally working within a project space, but I've tried restarting the application and repeating these steps in the absence of any building blocks to no avail. Can someone explain how to add the protein expression data for use in PBPK modeling?

@rwmcintosh
Copy link
Member

The new database file path is being saved to user settings somewhere on the file system, but it appears that that location is not accessible to the program, or the file is open in another editor and cannot be updated.

The file is being updated is C:\Users\<USERID>\AppData\Roaming\Open Systems Pharmacology\PK-Sim\11.3\UserSettings.xml unless you chose another option during installation.

@rwmcintosh rwmcintosh added the File System Relating to issues of writing or accessing file system label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
File System Relating to issues of writing or accessing file system
Projects
None yet
Development

No branches or pull requests

2 participants