/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package data.cerevisiae.region.wt4krlen;
import fork.lib.bio.anno.genomic.BedReader;
import fork.lib.bio.anno.genomic.region.GenomicRegionsLocator;
import java.io.File;
/**
*
* @author forksapien
*/
public class Locate {
public static void main(String[] args) throws Exception {
File dir= new File("/home/forksapien/mystudy/phd/files");
File d= new File(dir+"/anno/bed/len/score/select_change");
File od= new File(d+"/loc");
File rf= new File(dir+"/anno/sgdGene_sacCer1.bed");
//String tag= "742_743_1.5_30.0";
String tag= "742_743_2.0_30.0";
String[] ts= new String[]{
"up",
"down",
//"nochange"
};
for( int i=0; i<ts.length ; i++ ){
//for( int i=0; i<1 ; i++ ){
String t= ts[i];
String tt= tag+"_"+t;
File f= new File(d+"/select_"+tt+".bed");
GenomicRegionsLocator gl= new GenomicRegionsLocator(
new BedReader(f).getGenomicRegionsBuilder(),
new BedReader(rf).getGenomicRegionsBuilder()
);
File out= new File(od+"/location_"+tt+".bed");
gl.writeToFile(out);
}
}
}