/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package data.human.inhouse.chippeak.ap;
import data.human.test.trsc.CombineRNA;
import fork.lib.base.file.FileName;
import fork.lib.base.file.management.Dirs;
import java.io.File;
/**
*
* @author man-mqbpjmg4
*/
public class CombineR {
public static void main(String[] args) throws Exception { //debug
File dir= Dirs.getFile("dir");
File d= new File(dir+"/data/human_magnus/h2az/macs/merge/extract");
File rd= new File(d+"/scoreRNA");
File cd= new File(d+"/scoreNorm");
File out= new File(d+"/combineRNA.txt");
String[] tms= new String[]{
"0","5","10","20","40","80","160","320","640","1280",
};
CombineRNA jj= new CombineRNA();
boolean ifinit= false;
for( int i=0; i<tms.length; i++ ){
File f= new File(rd+"/side-right_200_5_locate_ensGene_hg19_exon_mcf7_rna3_time-"+tms[i]+"_hg19.bed");
if(FileName.getExt(f).equals("bed")){
if(!ifinit){
jj.initRows(f);
ifinit=true;
}
jj.addBedFile(f);
}
jj.writeToFile(out);
}
}
}