MACS
                                
                                 MACS copied to clipboard
                                
                                    MACS copied to clipboard
                            
                            
                            
                        Feat: xls output should have header line even if no peak has been detected
Problem
Using macs 2.2.7.1 - If no peak is detected, the xls output file contains the comment lines prefixed # but it does not contain the header line:
chr     start   end     length  abs_summit      pileup  -log10(pvalue)  fold_enrichment -log10(qvalue)  name
Describe the solution you'd like
Output the comment lines AND the header line.
Describe alternatives you've considered
One can add the header line afterwards but it makes for clunky code. I would say the current behavior is inconsistent since getting no peaks is a possibility that should be reflected in a file with header and no records.