Thank you for this. In your example, you divide the fly counts by all counts (i.e., human plus fly counts) rather than human counts alone, which was what my colleagues described. Is there a reason you use the former denominator over the latter?
Because the spike-in alignment counts are low to begin with, the resulting scaling factors are similar if using (a) only human counts or (b) all counts for the denominator.
(a) Using human counts in the denominator
Determine % of fly reads for each ChIP and input:
| Sample | Human Reads | Fly Reads | Calculation | % Fly Content |
|---------|-------------|-----------|------------------------|---------------|
| ChIP_1 | 30,000,000 | 700,000 | 700,000 / 30,000,000 | 2.33% |
| Input_1 | 10,000,000 | 400,000 | 400,000 / 10,000,000 | 4.00% |
| ChIP_2 | 40,000,000 | 3,000,000 | 3,000,000 / 40,000,000 | 7.50% |
| Input_2 | 10,000,000 | 450,000 | 450,000 / 10,000,000 | 4.50% |
| ChIP_3 | 25,000,000 | 1,000,000 | 1,000,000 / 25,000,000 | 4.00% |
| Input_3 | 10,000,000 | 380,000 | 380,000 / 10,000,000 | 3.80% |
Determine scaling factor for each ChIP (input fly % / ChIP fly % = scaling factor):
| Sample | Calculation | Scaling Factor |
|---------|-------------|----------------|
| ChIP_1 | 4.00 / 2.33 | 1.72 |
| ChIP_2 | 4.50 / 7.50 | 0.600 |
| ChIP_3 | 3.80 / 4.00 | 0.950 |
Normalize scaling factors by dividing all scaling factors by highest scaling factor (this is used for bamCoverage—if the scaling factor is in the denominator instead, scale by the lowest scale factor):
| Sample | Calculation | Normalized Scaling Factor |
|---------|-------------|---------------------------|
| ChIP_1 | 1.72 / 1.72 | 1.00 |
| ChIP_2 | 0.60 / 1.72 | 0.349 |
| ChIP_3 | 0.95 / 1.72 | 0.552 |
(b) Using all counts in the denominator
Determine % of fly reads for each ChIP and input:
| Sample | Human Reads | Fly Reads | Calculation | % Fly Content |
|---------|-------------|-----------|----------------------|---------------|
| ChIP_1 | 30,000,000 | 700,000 | 700,000/30,700,000 | 2.28% |
| Input_1 | 10,000,000 | 400,000 | 400,000/10,400,000 | 3.85% |
| ChIP_2 | 40,000,000 | 3,000,000 | 3,000,000/43,000,000 | 6.98% |
| Input_2 | 10,000,000 | 450,000 | 450,000/10,450,000 | 4.31% |
| ChIP_3 | 25,000,000 | 1,000,000 | 1,000,000/26,000,000 | 3.85% |
| Input_3 | 10,000,000 | 380,000 | 380,000/10,380,000 | 3.66% |
Determine scaling factor for each ChIP (input fly % / ChIP fly % = scaling factor):
| Sample | Calculation | Scaling Factor |
|---------|-------------|----------------|
| ChIP_1 | 3.85/2.28 | 1.69 |
| ChIP_2 | 4.31/6.98 | 0.62 |
| ChIP_3 | 3.66/3.85 | 0.95 |
Normalize scaling factors by dividing all scaling factors by highest scaling factor (this is used for bamCoverage—if the scaling factor is in the denominator instead, scale by the lowest scale factor):
| Sample | Calculation | Normalized Scaling Factor |
|---------|-------------|---------------------------|
| ChIP_1 | 1.69/1.69 | 1.00 |
| ChIP_2 | 0.62/1.69 | 0.367 |
| ChIP_3 | 0.95/1.69 | 0.562 |