How to calculate z-Score over bins in bam file
0
0
Entering edit mode
5.4 years ago

Hi I would like to calculate the Z-Score over 300bp non-overlapping bins over the entire bam file containing paired reads. The aim is to remove all tags that map to a bin over a certain Z-Score threshold. I am quite new to evaluating ngs data but maybe you can help me.

genome sequencing • 1.5k views
ADD COMMENT
1
Entering edit mode

This isn't a ready made solution but probably something like bedtools makewindows over whole genome, then bedtools coverage for convert to bedgraph, then compute statistics over the counts in the bedgraph

ADD REPLY
0
Entering edit mode

Also I am assuming when you say "tags that map to a bin" you mean "reads that map to a bin"

ADD REPLY
0
Entering edit mode

Well at first I was thinking about including entire fragments that map to a bin but now I have come to the conclusion that just reads is the better choice yes. I am trying to replicate a paper and they referred to them as tags. I am sorry if this is not the correct nomenclature.

ADD REPLY
0
Entering edit mode

Anything you did so far like counting the reads overlapping the bins? Did you create the bins yet, or is the problem the z-score calculation?

ADD REPLY
0
Entering edit mode

Also, why do you want to do this?

ADD REPLY

Login before adding your answer.

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