for( int i=0; i<fs.size() ; i++ ){
File f= fs.get(i);
System.out.println(f);
String chr= FileName.getBaseName(f);
String[][] arr= new ReadTable(f).getTableAsArray();
LandscapeBuilder lb= new LandscapeBuilder();
int pp=0; double pv=0;
for( int j=0; j<arr.length ; j++ ){
String[] r= arr[j];
int p= Integer.parseInt(r[0]);
double v= Double.parseDouble(r[1]);
if(pp!=0){
Region reg= new Region(pp, p-1);
reg.attr= (double)Math.round(pv*res)/res;
lb.add(chr, reg);
}
pp=p; pv=v;
}
BedGraphExporter be= new BedGraphExporter(lb);