Package data.human.inhouse.chippeak.ap

Source Code of data.human.inhouse.chippeak.ap.CombineC

/*
* To change this template, 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 muxin gu
*/
public class CombineC {
   
   
   
   
   
   

   
   
   
   
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+"/combineChip.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(cd+"/chip_norm_wig_mcf7_chip-h2az_time-"+tms[i]+"_hg19.bed");
        if(FileName.getExt(f).equals("bed")){
            if(!ifinit){
                jj.initRows(f);
                ifinit=true;
            }
            jj.addBedFile(f);
        }
    }
   
    /**
    for( int i=0; i<tms.length; i++ ){
        File ff= new File(rd+"/side-right_200_5_locate_ensGene_hg19_exon_mcf7_rna3_time-"+tms[i]+"_hg19.bed");
        jj.addBedFile(ff);
    }
    */
   
    jj.writeToFile(out);
   
}

   
   
   
}
TOP

Related Classes of data.human.inhouse.chippeak.ap.CombineC

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.