# Import -----------------------------------------------------------------------

import os
from sequana.report_mapping import MappingReport
from sequana import bedtools, sequana_data

# Test -------------------------------------------------------------------------

def test_report():
    mydata = bedtools.Genomecov(sequana_data("test_bedcov.bed"))
    mydata.running_median(n=3, circular=False)
    mydata.coverage_scaling()
    mydata.compute_zscore()
    r = MappingReport()
    r.set_data(mydata)
    r.create_report()

@@ -1,86 +1,4 @@
-# Import -----------------------------------------------------------------------%0A%0A
 impo
@@ -3,16 +3,17 @@
 port os%0A
+%0A
 from seq
@@ -69,216 +69,293 @@
 uana
- import bedtools, sequana_data%0A%0A# Test -------------------------------------------------------------------------%0A%0Adef test_report():%0A    mydata = bedtools.Genomecov(sequana_data(%22test_bedcov.bed%22))%0A    mydata
+.report_chromosome import ChromosomeMappingReport%0Afrom sequana import bedtools, sequana_data%0A%0A%0Adef test_report():%0A    mydata = bedtools.Genomecov(sequana_data(%22test_bedcov.bed%22))%0A    r = MappingReport()%0A    r.set_data(mydata)%0A    r.create(report)%0A    for chrom in mydata:%0A        chrom
 .run
@@ -391,22 +391,25 @@
 se)%0A    
+  
-mydata
+  chrom
 .coverag
@@ -424,22 +424,25 @@
 g()%0A    
-mydata
+    chrom
 .compute
@@ -451,28 +451,42 @@
 score()%0A    
-r = 
+    r = Chromosome
 MappingRepor
@@ -481,32 +481,36 @@
 MappingReport()%0A
+    
     r.set_data(m
@@ -504,32 +504,35 @@
  r.set_data(
-mydata)%0A
+chrom)%0A    
     r.create

Update test report_mapping