igvShiny icon indicating copy to clipboard operation
igvShiny copied to clipboard

When ivgshiny starts up, initialize certain tracks.

Open jmzhang1911 opened this issue 11 months ago • 1 comments

Hello developer,

Greetings! Thank you for developing such an intriguing tool. I encountered an issue while using it: How can I import some tracks during initialization? I noticed that igvShiny includes a parameter called tracks, but I'm unsure how to specify it.

For instance, I have a track that can be loaded and displayed using loadBedGraphTrack(session = session, id = 'igvShiny', trackName = 'DPC_EP_1', tbl = tbl.bed5, autoscale = TRUE, color = "blue"). My aim is to display this track when igvShiny starts.

Looking forward to your reply. Best regards!

jmzhang1911 avatar Mar 27 '24 03:03 jmzhang1911

Hi @jmzhang1911,

Thanks for your kind words.

You have to create the Shiny app and then define your BED track there. Please take a look at the package overview: link to familiarize yourself with the general concept. You don't have to create the app from scratch. You can reuse the demo app. In your case updating this line with your data should be enough. Then run the demo app with:

demo_app_file <- "/your/path/to/modifiyed/igvShinyDemo.R"
shiny::[runApp](https://rdrr.io/pkg/shiny/man/runApp.html)(demo_app_file)

gladkia avatar Mar 27 '24 07:03 gladkia