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

Just to confirm, could you explain if the data of my BAM files are analysed locally while using this wonderful library. #28

Closed
Manuel-DominguezCBG opened this issue Nov 23, 2023 · 3 comments

Comments

@Manuel-DominguezCBG
Copy link

Manuel-DominguezCBG commented Nov 23, 2023

My command looks like this

image
Here the code of that cell

print('BED line: chr3 30606853 30607004 TGFBR2_01F_P5_03')
b = igv_notebook.Browser({'genome': 'hg38', 'locus': 'chr3:30606853-30607004'})
b.load_track({'name': '', 'path': './COSMIC.bam', 'indexPath': './COSMIC.bam.bai', 'format': 'bam', 'type': 'alignment'})
b.search('chr3:30606853-30607004')

I need to make sure that all work done is done locally. I am working with patient data. Am I sending the reads of my BAM file to IGV web and receiving in the Jupyter notebook the results of IGV web?

I don't mind if the reference genome is loaded through the internet (it is very efficient by the way well done) but my BAM files must remain local.

If you wonder why I don't just use the locally installed IGV version on my machine. I have created a Python script that automatizes the visualization of regions by using igv-notebook. My script takes the bam file and the bed file and generates a new Jupyter notebook witrh one cell in the notebook for each line found in a BED file given. This allows me to visualised straightaway all regions I want to see.

@Manuel-DominguezCBG Manuel-DominguezCBG changed the title Is possible to make run the jupyter notebook 100% locally or Am I sending the data of my BAM to IGVweb?? Just to confirm, could you explain if the data of my BAM files are analysed locally while using this wonderful library. Nov 23, 2023
@jrobinso
Copy link
Contributor

jrobinso commented Nov 23, 2023 via email

@jrobinso
Copy link
Contributor

In other words nothing leaves your web browser. igv.js (embedded in igv-notebook) pulls resources such as gene annotations from remote servers, but nothing is sent the other direction.

@Manuel-DominguezCBG
Copy link
Author

Thank you soo much for your prompt replay and thanks for this wonderful tool. I close this 👍

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