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

Is there a way to change cutoffs in the multimir-package without importing the files into R again? #54

Open
SergejRuff opened this issue Jan 13, 2024 · 1 comment
Assignees

Comments

@SergejRuff
Copy link

am importing the same targetsets from the multimir-Package with different cutoffs.

Right now, I am using a loop to import the same targetsets multiple times but with different cutoffs:

miDB <- "pita"
cutoff <- c( 20,80,95,98,99)
for (DB in miDB) {
for (miCutOff in cutoff) {
miRNA_target_db = get_multimir(mirna=grouped_ID2, org="mmu", table=miDB, predicted.cutoff=miCutOff, summary=FALSE)
}
}

That´s a mock-up of the code I am using. The problem is, that importing the data takes between 2-5 minutes depending on the targetset and the cutoff. Is there a way to import the data once with a cutoff of 99 (for example) and then change the cutoff to 98,95,80 and so on?

@smahaffey
Copy link
Collaborator

@SergejRuff I apologize for the delayed response. There is no functionality to make this work right now. Each run of get_multimir constructs the SQL query and sends it to the server to query the database which returns HTML tables that are parsed in R.

I will be spending some time on the database to provide updated data, but we are not planning major revisions of the R package. I will mention this request and see if it's something we could find a way to accommodate.

@smahaffey smahaffey self-assigned this Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants