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

voltron with jupyter notebook #144

Closed
smc9477 opened this issue Aug 29, 2024 · 10 comments
Closed

voltron with jupyter notebook #144

smc9477 opened this issue Aug 29, 2024 · 10 comments
Labels
enhancement New feature or request

Comments

@smc9477
Copy link

smc9477 commented Aug 29, 2024

Thank you for creating such a great tool.
I am trying to perform an analysis on a Jupyter Notebook using a conda environment as the kernel on a Linux server. However, the IP I can use is fixed, and it seems that the registerSpatialData function does not allow me to fix the IP. Additionally, due to server policies, I am unable to use RStudio.

Could you please suggest what I can do in this situation?

@Artur-man
Copy link
Collaborator

Artur-man commented Sep 4, 2024

Hello there,

Thanks so much <3

Hmm perhaps I can configure the port where it can be an option for any function that requires shiny applications. As an alternative, if you wanna use VoltRon in a jupyter notebook (with R kernel?) perhaps we can trigger shiny using htmlwidgets which is supported in Jupyter notebooks. Would you also prefer that ?

@Artur-man Artur-man added the enhancement New feature or request label Sep 4, 2024
Artur-man added a commit that referenced this issue Sep 4, 2024
allowing shiny options passed to shinyApp and runApp git #144
@Artur-man
Copy link
Collaborator

Artur-man commented Sep 4, 2024

I have pushed an update to the shiny-based routines to recognize options from the shinyApp function. Hence now you can pass information on host and port. Wanna give it a try?

annotateSpatialData(visium_data, shiny.options = list(host = "127.0.0.1", port = 6356))

vrSpatialPlot(visium_data, interactive = TRUE, shiny.options = list(port = 6356))

annotateSpatialData(visium_data, shiny.options = list(port = 6356))

registerSpatialData(reference_spatdata = visium_data, 
                    query_spatdata = visium_data, 
                    shiny.options = list(host = "127.0.0.1", port = 6356))

The update is on dev now. Please remove the R package, restart R session and download VoltRon from dev branch again to try.

@smc9477
Copy link
Author

smc9477 commented Sep 11, 2024

thank you for update function.

i've removed the R package and re-download from dev, but still there is no shiny.options at registerSpatialData function.
could you chek it? Thank you for your time

@Artur-man
Copy link
Collaborator

Artur-man commented Sep 11, 2024

Hello there, I have just tried pulling from the dev branch to see if it is working, and it does:
devtools::install_github("BIMSBbioinfo/VoltRon@dev")

Reinstalling R packages are bit more tricky then it should be, you have to make sure that you deleted it by attemping to delete twice, and restart the R session before downloading, otherwise you get the same package ... also main branch still doesnt have the modification

@smc9477
Copy link
Author

smc9477 commented Sep 19, 2024

it worked successfully!! thank you so much for your effort!!
i reinstalled R package with deleting three times (<- it really worked)
i had been working with fuji, but it's much better.
그림1

@smc9477 smc9477 closed this as completed Sep 19, 2024
@Artur-man
Copy link
Collaborator

It was my pleasure my friend, thanks for the feedback :D
Just one question though, is this automated registration or manual ?

@smc9477
Copy link
Author

smc9477 commented Oct 10, 2024

Yes i used automated registration!

@smc9477
Copy link
Author

smc9477 commented Dec 20, 2024

Hi again! Instead of manually interacting with the Shiny app, I want to automate the process and get the results directly in a single run.

Is there a way to convert the interactive steps that runs entirely in R with automated registration?

@Artur-man
Copy link
Collaborator

Hmm, we were thinking of implementing this as once you enter the correct parameters the run should just go through the alignment itself. We can implement this soon, will let know.

@Artur-man
Copy link
Collaborator

Hey there, we have an implementation for this now on the main branch. See also here.

There are some examples in the tutorials page now too.

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

No branches or pull requests

2 participants