John...
I like your suggestion of using genes that are actually expressed or in close proximity to the peaks and I should have considered that. As you guessed refining a hypothesis on the basis of whether it was downloaded from ensembl or HUGO is rather unsatisfactory :) Actually I decided to use ensembl list because it was much more richer and was taken aback by the completely different result even though the same class of genes was used - bigger gene list diluted the overall signal. It is not that I want the analysis to show what I want it to show but I'm simply being wary and don't want to mislead a potential paper reader without me even noticing it.
Having said that I do think that if one wants to compare different gene families for factor's occupancy on gene body the number of genes in the list ought to be the same. Why? Because overall coverage depends on (is function of) number of items on the gene list (see point 8 of implementation here) whether the genes are expressed or not. Hence if the question is whether genome occupancy for a gene class vs another has to be answered then gene list length to be compared must be equal.
Let me illustrate: say we are comparing class A to class B. Class A has 5 genes while class B has 50 genes and all these genes are in proximity to peaks so can be included in the analysis. Now I assume for each gene in class A there are 10 reads aligning and hence the average profile will be 10. While in class B the first 10 genes have 20 reads while none reads in rest and hence average profile will be 4. The final conclusion is that factor is occupying class A more significantly than class B. But is this true? You can see that the top 10 genes of class B had bigger occupancy than combined mean coverage of class A. For me this is problematic.
The way I want to do it then is as follows:
1) get profiles for class B and order from highest to lowest enrichment
2) take top five genes from class B and repeat the procedure in parallel to A (which also has five members) to compare the two groups.
I guess that's OK?
I'm open to your suggestions!
Thanks...
Well, not that it's easy, but you could double check the result by re-creating the plot in R. If the trends hold up, then you would know it's the data itself, and not something going wrong with ngs.plot. Construction Of Average Gene Profile