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

visualize sashimi plot with brie2 #50

Open
TuoCai2000 opened this issue Oct 21, 2022 · 3 comments
Open

visualize sashimi plot with brie2 #50

TuoCai2000 opened this issue Oct 21, 2022 · 3 comments

Comments

@TuoCai2000
Copy link

Hello!Thank you for developing Brie!
Recently I tried to visualize sashimi plot with Brie2's h5ad files.
However,I noticed that I had to use Brie1's results(samples.csv.gz)to draw the sashimi plot with miso's sashimi_plot command.
Samples.csv.gz includes the MCMC samples of posterior distribution of Psi,however,h5ad files don't contain this information given that Brie2 doesn't use Metropolis-Hastings algorithm to approximate the posterior.
So I would like to verify if sashimi plot can only be generated with Brie1's result?
Thank you so much!

@yiyisun682
Copy link

Hello!Thank you for developing Brie!
Following up on the previous question raised by TuoCai2000, I would like to ask if there is a script that can directly use the .h5ad file generated by Brie2 to draw the sashimiplot?

@huangyh09
Copy link
Owner

Thanks @TuoCai2000 and @yiyisun682 for being interested in the sashimi function. Unfortunately, it's indeed only available for brie1's results and doesn't support h5ad file.

Potentially, you can extract the specific cell types into sub-bam file(s) and make sashimi plots by treating them as bulk samples:
https://github.com/huangyh09/briekit/tree/master/sashimi_plot
Note, this only supports Python 2 (which you can create with conda environment).

For extracting cells from a bam file with samtools view:

samtools view -D BC:barcodes.txt -o /data_folder/data.barcodes.bam /data_folder/data.bam

Yuanhua

@yiyisun682
Copy link

Thank you very much for your answer and we will make further attempts according to your suggestions.

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

3 participants