CCBR / Pipeliner

An open-source and scalable solution to NGS analysis powered by the NIH's Biowulf cluster.
4 stars 0 forks source link

PhantomPeakQualTool: Estimated Fragment Length #403

Closed skchronicles closed 5 years ago

skchronicles commented 5 years ago

Phantom Peak Quality Tools: Handling Negative Fragment Length

In a few edge cases, the estimated fragment lengths maybe < 0. This can be caused by a variety of factors such that are experimentally driven, such as poor ChIP efficiency (because of a bad antibody), or user driven, such as aligning to the wrong reference genome.

Issue:

We are using the first estimated fragment length for bigwig generation, i.e. comma separated strand cross-correlation peak(s) in decreasing order of correlation: -5,150,335.

Solution:

Find the first non-negative fragment length for bigwig generation and other downstream uses. If all estimated fragement lengths are negative, choose the first negative value and include a comment in the resulting bash command: -5,-5,-5.