Bam in python
1
0
Entering edit mode
2.2 years ago
Anst ▴ 40

Hello!

I am trying to calculate some probabilities via python and for that, I need a bam file in it.

I'd like to know what is the best way of uploading bam into jupyter notebook, so I can see how reads are laying against reference

Thanks!

python bam • 846 views
ADD COMMENT
1
Entering edit mode
2.2 years ago
liorglic ★ 1.4k

You can try pysam, or if you want a general genomic framework, try Hail. Keep in mind that there are many useful functions related to BAM file manipulation and analysis in software tools like samtools and bedtools, so it might be worth checking these out before you start developing your own scripts.

ADD COMMENT
0
Entering edit mode

Thanks! However, there are some challenges with pysam installation. Just cannot do it via conda...

ADD REPLY
0
Entering edit mode

What's the problem? I was able to install it using conda/mamba with no special issues. If you are running into dependency conflicts, try installing in a clean conda environment.

ADD REPLY
0
Entering edit mode

I've already dealt with all installing problems. Thanks for your answer!

ADD REPLY

Login before adding your answer.

Traffic: 2423 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6