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

lionessPy saves file output regardless of 'save_single_network' #275

Closed
jbeckman1 opened this issue Jan 9, 2023 · 4 comments
Closed

lionessPy saves file output regardless of 'save_single_network' #275

jbeckman1 opened this issue Jan 9, 2023 · 4 comments

Comments

@jbeckman1
Copy link

Output from calling lionessPy is always saved to a folder 'lioness_output' regardless of what I enter into 'save_single_network' or 'save_dir'. I had interpreted setting 'save_single_network' to FALSE as preventing any output from being written into my working directory. Am I misunderstanding the scope of this argument?

@marouenbg
Copy link
Collaborator

marouenbg commented Jan 10, 2023

Hi @jbeckman1 ,
Thank you for reporting this issue, I've updated lionessPy code to account for these parameters (#276). Please reinstall netZooR from the devel branch and let me know if this works.

@jbeckman1
Copy link
Author

jbeckman1 commented Jan 12, 2023

Hi @marouenbg , thanks for the quick reply. Unfortunately, I am still seeing a directory named lioness_output and the file lioness.npy regardless of those arguments. This was my test case from the example:


control_expression_file_path <- system.file("extdata", "expr10_reduced.txt", package = "netZooR", 
                                            mustWork = TRUE)
motif_file_path <- system.file("extdata", "chip_reduced.txt", package = "netZooR", mustWork = TRUE)
ppi_file_path <- system.file("extdata", "ppi_reduced.txt", package = "netZooR", mustWork = TRUE)

control_lioness_result <- lionessPy(expr_file = control_expression_file_path, 
                                    save_tmp = FALSE,
                                    motif_file = motif_file_path, 
                                    ppi_file = ppi_file_path, 
                                    modeProcess="union",
                                    start_sample=1, 
                                    end_sample=1, 
                                    precision="single", 
                                    save_single_network = FALSE, 
                                    save_dir = 'test')

@marouenbg
Copy link
Collaborator

My bad @jbeckman1, I pushed new code that should fix it #277

Let me know !

@jbeckman1
Copy link
Author

Works perfectly! Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants