Get the count.matrix from Chip-Seq BAM files
1
1
Entering edit mode
4.6 years ago
elb ▴ 260

Hi guys, is there a way to get the count matrix from BWA-BAM files of a Chip experiment? Normally this is the standard pipeline in RNA-Seq but this is the first time my boss asked me to do this for Chip-Seq data. normally I run MACS and then I go on. I tried using featureCounts but as far as I know I have to specify the GTF.featureType (eg. exon). How if I don't want to specify the type of feature? Thank you in advance

ChIP-Seq • 1.5k views
ADD COMMENT
0
Entering edit mode
4.6 years ago
ATpoint 85k

featureCounts accepts the SAF format:

awk 'OFS="\t" {print $1"_"$2"_"$3, $1, $2, $3, "."}' in.narrowPeak > out.saf

The first column is a name column, I simply use a concatenation of chr_start_end. This can go into featureCounts with -F SAF.

ADD COMMENT
0
Entering edit mode

Okk I'm getting the point. Is it equal with the *broad_peaks.bed file (as from MACS) instead of narrowPeak to generate the SAF file? I suspect yes but I'm not sure. The coordinates (i.e. start-end) should be the same.

ADD REPLY
1
Entering edit mode

SAF is Name-Chr-Start-End-Strand

ADD REPLY
0
Entering edit mode

Yes, sure! thank you very much!

ADD REPLY

Login before adding your answer.

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