66import java .util .ArrayList ;
77import java .util .HashMap ;
88
9+ import plop .multiProcesing .ProcessCoolerDumpData ;
10+ import plop .process .CoolerDumpData ;
911import plop .process .MultiResProcess ;
12+ import plop .utils .CoolerExpected ;
1013import plop .utils .SIPObject ;
1114@ SuppressWarnings ("unused" )
1215public class TestCoolFormat {
1316
1417 public static void main (String [] args ) throws IOException , InterruptedException {
1518 String chr = "chr21" ;
1619 //String input = "/home/plop/Desktop/SIP/testCooler/GM12878_4DNFIXP4QG5B.mcool";
17- String input = "/home/plop/Desktop/CoolTest21 " ;
18- String output = "/home/plop/Desktop/CoolTest21Bis " ;
19- String expectedFile = "/home/plop/Desktop/chr21Cooler /expected.txt" ;
20- String fileChr = "/home/plop/Desktop/w_hg19.sizes " ;
21- String cooler = "/home/plop/anaconda3/bin/cooler" ;
22- String cooltools = "/home/plop/anaconda3/bin/cooltools" ;
20+ String input = "// home/plop/Desktop/coolTest/MCF7_863.mcool " ;
21+ String output = "/home/plop/Desktop/coolTest/test " ;
22+ String expectedFile = "/home/plop/Desktop/coolTest/test /expected.txt" ;
23+ String fileChr = "/home/plop/Desktop/coolTest/chr22.txt " ;
24+ String cooler = "/home/plop/anaconda3/envs/cooler/ bin/cooler" ;
25+ String cooltools = "/home/plop/anaconda3/envs/cooler/ bin/cooltools" ;
2326 HashMap <String ,Integer > chrsize = readChrSizeFile (fileChr );
24- int resolution = 5000 ;
27+ int resolution = 40000 ;
2528 int matrixSize = 2000 ;
26- //CoolerExpected expected = new CoolerExpected(input, resolution, matrixSize);
29+ int cpu = 5 ;
30+ //CoolerExpected expected = new CoolerExpected(cooltools, input, resolution, matrixSize,cpu);
2731 //expected.dumpExpected(expectedFile);
2832 //CoolerExpected expected = new CoolerExpected(expectedFile, matrixSize);
2933 //expected.parseExpectedFile();
3034 //ArrayList<Double> plop = expected.getExpected(chr);
31- //CoolerDumpData cooler = new CoolerDumpData(input, resolution, plop );
35+ //CoolerDumpData coolerD = new CoolerDumpData(cooler,input );
3236 //run(resolution,matrixSize,matrixSize/2,chr,output, cooler, 46709983);
3337
3438 int diagSize = 5 ;
@@ -40,20 +44,21 @@ public static void main(String[] args) throws IOException, InterruptedException
4044 double saturatedPixel = 0.01 ;
4145 ArrayList <Integer > factor = new ArrayList <Integer >();
4246 factor .add (1 );
43- factor .add (2 );
44- factor .add (5 );
45- boolean keepTif = false ;
46- int cpu = 1 ;
47+ // factor.add(2);
48+ // factor.add(5);
49+ boolean keepTif = true ;
50+
4751
48- SIPObject sip = new SIPObject (input ,output , chrsize , gauss , min , max , resolution , saturatedPixel , thresholdMax , diagSize , matrixSize , nbZero ,factor ,0.03 ,keepTif ,false );
52+ SIPObject sip = new SIPObject (input ,output , chrsize , gauss , min , max , resolution , saturatedPixel , thresholdMax ,
53+ diagSize , matrixSize , nbZero ,factor ,0.03 ,keepTif ,false );
4954 sip .setIsGui (false );
5055 sip .setIsCooler (true );
51- sip .setIsProcessed (true );
56+ sip .setIsProcessed (false );
5257
5358
54- // ProcessCoolerDumpData processDumpData = new ProcessCoolerDumpData();
55- // go(String coolTools, String cooler, SIPObject sip, String coolFile, HashMap<String,Integer> chrSize,int nbCPU)
56- // processDumpData.go(cooltools, cooler, sip, input, chrsize,2);
59+ ProcessCoolerDumpData processDumpData = new ProcessCoolerDumpData ();
60+ // go(String coolTools, String cooler, SIPObject sip, String coolFile, HashMap<String,Integer> chrSize,int nbCPU)
61+ processDumpData .go (cooltools , cooler , sip , input , chrsize ,2 );
5762 MultiResProcess multi = new MultiResProcess (sip , cpu , keepTif ,fileChr );
5863 multi .run ();
5964
0 commit comments