<p>Hello, 
I am having a hard time opening a very large bedgraph. I have been suggested to split my <a href='http://samtools.sourceforge.net/SAM1.pdf'>bam</a> file by chromosome with chrom-bed.py but it didn't work.
Is there any other alternative?
Thanks,
GP.</p>

    samtools view in.bam chr1 -b > out.bam

Use `-b` to output bam format
