-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTestCountValues.java
More file actions
executable file
·47 lines (31 loc) · 1.36 KB
/
TestCountValues.java
File metadata and controls
executable file
·47 lines (31 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import java.util.*;
import java.io.*;
public class TestCountValues{
public static void main( String[] args) throws Exception{
String fn = "outputFiles1/ancestorGenome_8400_9050_10997_19515.txt";
String fnNoSubInfo = "outputFiles/ancestorGenome_8400_9050_10997_19515.txt";
String[] ancestor= new String[212];
String[] ancestorNoSubgenomeInfo = new String[171];
FileReader fr1 = new FileReader(fn);
BufferedReader br1 = new BufferedReader(fr1);
String aline ="";
for(int i = 0; i< ancestor.length; i++){
aline = br1.readLine();
ancestor[i] = br1.readLine();
}
fr1 = new FileReader(fnNoSubInfo);
br1 = new BufferedReader(fr1);
for(int i = 0; i< ancestorNoSubgenomeInfo.length; i++){
aline = br1.readLine();
ancestorNoSubgenomeInfo[i] = br1.readLine();
}
CommonGene cg = new CommonGene();
GenomeInString[] twoGenomes = new GenomeInString[2];
twoGenomes[0] = new GenomeInString(ancestor);
twoGenomes[1] = new GenomeInString(ancestorNoSubgenomeInfo);
cg.getCommonGeneForPolyploid(twoGenomes);
BPGDistance abpg = new BPGDistance(cg.newGenomes[0].chrs, cg.newGenomes[1].chrs);
abpg.getValue();
System.out.println( abpg.distance + "\t"+ abpg.geneNumber);
}
}