Giter Site home page Giter Site logo

Comments (9)

deeenes avatar deeenes commented on May 25, 2024 1

Hi @dpryan79,

I backported this to Bioc 3.13, OmnipathR 3.0.1 has been propagated already for Linux and OSX, hopefully it will be updated also for Windows soon: http://bioconductor.org/packages/3.13/bioc/html/OmnipathR.html

Best,

Denes

from omnipathr.

deeenes avatar deeenes commented on May 25, 2024 1

You are right, now in 3.0.4 and 3.1.4 I made the options set before package loading to be preserved. These changes will be in BioC 3.13 and 3.14 hopefully soon.

from omnipathr.

deeenes avatar deeenes commented on May 25, 2024

Hi,

That's a good point. One solution could be if you create a config file at <user_config_path>/OmnipathR/omnipathr.yml with the content:

default
  omnipath.logfile: /dev/null

Alternatively, I can add an option to disable logging, which could be set from the config file or by an environment variable. Let me know if you prefer this.

Best,

Denes

from omnipathr.

dpryan79 avatar dpryan79 commented on May 25, 2024

An option would probably be easiest :)

from omnipathr.

deeenes avatar deeenes commented on May 25, 2024

Hi @dpryan79,

Since 38757b4 if you set the parameter omnipath.logfile to none , the logging to file is disabled. In the config file it looks like this:

default
  omnipath.logfile: none

Alternatively, the parameter can be set by an environment variable:

$ export OMNIPATH_LOGFILE="none"
$ R
> library(OmnipathR)
>

I hope this helps. This is currently here in our git repo, in version 3.1.2. I am wondering if there is a way to backport it to Bioc 3.13?

Best,

Denes

from omnipathr.

dpryan79 avatar dpryan79 commented on May 25, 2024

Awesome, thanks!

from omnipathr.

dpryan79 avatar dpryan79 commented on May 25, 2024

You should be able to post a bugfix update to the current bioconductor release. You'll need to bump the version to 3.0.1. Other than that I don't really know how the Bioconductor release process works.

from omnipathr.

bersbersbers avatar bersbersbers commented on May 25, 2024

I am not quite sure what the use of omnipath.logfile is: it does not seem to be useful to suppress creation of the logfile, supposedly because OmnipathR overwrites that option on first load and immediately creates the log file. See here:

options(omnipath.logfile='none')

getOption('omnipath.logfile')
[1] "none"

OmnipathR:::omnipath_has_logfile()
[1] TRUE

getOption('omnipath.logfile')
NULL

I found export OMNIPATH_LOGFILE="none" very useful, but I wonder how I can suppress creation of the log file from within R.

Sys.setenv(OMNIPATH_LOGFILE = 'none')
OmnipathR:::omnipath_has_logfile()

works ;)

from omnipathr.

bersbersbers avatar bersbersbers commented on May 25, 2024

Thanks, confirmed!

from omnipathr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.