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

DPclust input dataset.Rdata doesn't load existing object #28

Open
Lesky47 opened this issue Aug 22, 2024 · 1 comment
Open

DPclust input dataset.Rdata doesn't load existing object #28

Lesky47 opened this issue Aug 22, 2024 · 1 comment

Comments

@Lesky47
Copy link

Lesky47 commented Aug 22, 2024

Hello and thanks for the great tool! I've been running it with the latest version but run into some issues:

if (file.exists(paste(outdir, "/", rdata_file_name, sep=""))) {

The "rdata_file_name" is set to contain the exact time in its name, so every time I run runDP(), the "rdata_file_name" will be something like "Seed-123_Date-2024-08-22_14:18:22.734335_dataset.RData" and file.exists(paste(outdir, "/", rdata_file_name, sep="")) will always return FALSE even if there's already a dataset generated previously (Or generated elsewhere using a different name format). Also the current naming is not allowed in my system (':' cannot be used in file name).

@Avramis
Copy link
Contributor

Avramis commented Nov 1, 2024

Hi @Lesky47,

Thanks for your ticket.

The fix was initially implemented because we had the opposite issue—when an analysis was rerun with new parameters in the same output folder, the code was loading old data "dataset.RData". We’re currently working on an update so that users can specify whether they want the tool to use an existing dataset.RData file or generate a new one.

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