Sort/Index bam prior to peak-calling ChIP-seq & deeptools bigwig visualisation
0
0
Entering edit mode
6.3 years ago

Hi biostars community,

First off I am quite new to NGS data analysis, and I am trying to find out answers for a few questions.

I have gotten ChIP-seq data from a time-course and disease experiment, that I have trimmed and aligned with bowtie2, giving me .sam files, which I am converting to .bam with SAMtools. I want to check the read coverage for QC (with MultiBamSummary) prior to peak-calling with MACS2 (and would like to visualise with IGV), but I have run into a few options and am not sure which is the right way to go:

Should I use SAMtools to sort and index the bam files prior to peak calling? (and can visualise the sorted.bam & index files in IGV) - is it necessary to sort .bam files prior to peak calling?

Or is it better to use deepTools' Bam coverage to generate bigwig files from the .bam files for visualisation with IGV, and then peak call with the non-sorted/indexed .bam files - saving some processing time?

Thanks for the help and suggestions, Andrew


Edit: I think I answered my own question here - deepTools multibamsummary requires indexed files to run....so will sort and index the files!

ChIP-Seq alignment • 4.6k views
ADD COMMENT
1
Entering edit mode

Coordinate-sorting your alignment is always a good choice as it is necessary for indexing and most downstream tools. You can avoid the sam file by simply piping the alignment directly to SAMtools sort:

bowtie2 (...parameters...) | samtools sort -o sorted.bam -
ADD REPLY
0
Entering edit mode

Thanks for the suggestion! I hadn't thought of that (would have saved me a heap of time...) - I am going to try a few different alignment and peak calling tools, so will keep this in mind for the future! Cheers!

ADD REPLY
1
Entering edit mode

You're welcome. There are plenty of shortcuts and little workarounds that you'll learn about once you get more experienced ;-) I strongly encourage ypu to play around with tools and commands if you have a bit of time here and there.

ADD REPLY
0
Entering edit mode

how to index the sort.bam files

ADD REPLY
0
Entering edit mode

Please use the search function and google for this. The first hit would have redirected you to this post, instructing you to do samtools index in.bam ;-)

ADD REPLY

Login before adding your answer.

Traffic: 2609 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