@@ -74,8 +74,8 @@ public void tearDown() {
74
74
75
75
@ Test
76
76
public void testRunTumorWithGermline () throws InterruptedException , ExecutionException , IOException {
77
- TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_test_TD_AAC " );
78
- TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_test_ND_AAC " );
77
+ TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_xxx_test_TD_AAC " );
78
+ TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_xxx_test_ND_AAC " );
79
79
findReader = new MatePairsReader (PairGroup .valueOf ("AAC" ), matePairDir .getAbsolutePath () + FILE_SEPARATOR , "test" , "TD" );
80
80
compareReader = new MatePairsReader (PairGroup .valueOf ("AAC" ), matePairDir .getAbsolutePath () + FILE_SEPARATOR , "test" , "ND" );
81
81
//germline
@@ -92,7 +92,7 @@ public void testRunTumorWithGermline() throws InterruptedException, ExecutionExc
92
92
93
93
@ Test
94
94
public void testRunTumorWithSomatic () throws InterruptedException , ExecutionException , IOException {
95
- TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_test_TD_AAC " );
95
+ TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_xxx_test_TD_AAC " );
96
96
findReader = new MatePairsReader (PairGroup .valueOf ("AAC" ), matePairDir .getAbsolutePath () + FILE_SEPARATOR , "test" , "TD" );
97
97
compareReader = new MatePairsReader (PairGroup .valueOf ("AAC" ), matePairDir .getAbsolutePath () + FILE_SEPARATOR , "test" , "ND" );
98
98
//germline
@@ -108,7 +108,7 @@ public void testRunTumorWithSomatic() throws InterruptedException, ExecutionExce
108
108
109
109
@ Test
110
110
public void testRunNormal () throws InterruptedException , ExecutionException , IOException {
111
- TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_test_ND_AAC " );
111
+ TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_xxx_test_ND_AAC " );
112
112
findReader = new MatePairsReader (PairGroup .valueOf ("AAC" ), matePairDir .getAbsolutePath () + FILE_SEPARATOR , "test" , "TD" );
113
113
compareReader = new MatePairsReader (PairGroup .valueOf ("AAC" ), matePairDir .getAbsolutePath () + FILE_SEPARATOR , "test" , "ND" );
114
114
findClusters = new FindDiscordantPairClustersMT (PairGroup .AAC , countDownLatch , compareReader ,
@@ -124,8 +124,8 @@ public void testRunNormal() throws InterruptedException, ExecutionException, IOE
124
124
125
125
@ Test
126
126
public void testFindCxxClusters () throws Exception {
127
- TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .Cxx , "chr4-chr15_test_TD_AAC " );
128
- TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .Cxx , "chr4-chr15_test_ND_AAC " );
127
+ TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .Cxx , "chr4-chr15_xxx_test_TD_AAC " );
128
+ TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .Cxx , "chr4-chr15_xxx_test_ND_AAC " );
129
129
130
130
findReader = new MatePairsReader (PairGroup .valueOf ("Cxx" ), matePairDir .getAbsolutePath () + FILE_SEPARATOR , "test" , "TD" );
131
131
compareReader = new MatePairsReader (PairGroup .valueOf ("Cxx" ), matePairDir .getAbsolutePath () + FILE_SEPARATOR , "test" , "ND" );
@@ -143,10 +143,10 @@ public void testFindCxxClusters() throws Exception {
143
143
144
144
@ Test
145
145
public void testFindClusters () throws Exception {
146
- TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_test_TD_AAC " );
146
+ TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_xxx_test_TD_AAC " );
147
147
findClusters = new FindDiscordantPairClustersMT (PairGroup .AAC , countDownLatch , findReader , compareReader , tumor , normal , countReport , "" , true );
148
148
findReader = new MatePairsReader (PairGroup .valueOf ("AAC" ), matePairDir .getAbsolutePath () + FILE_SEPARATOR , "test" , "TD" );
149
- List <MatePair > pairs = TestUtil .readInMatePairs (new File (matePairDir .getAbsolutePath () + FILE_SEPARATOR + "AAC" + FILE_SEPARATOR + "chr7_test_TD_AAC " ));
149
+ List <MatePair > pairs = TestUtil .readInMatePairs (new File (matePairDir .getAbsolutePath () + FILE_SEPARATOR + "AAC" + FILE_SEPARATOR + "chr7_xxx_test_TD_AAC " ));
150
150
151
151
assertEquals (6 , pairs .size ());
152
152
List <DiscordantPairCluster > list = findClusters .findClusters (pairs );
@@ -157,17 +157,17 @@ public void testFindClusters() throws Exception {
157
157
158
158
@ Test
159
159
public void testClassifyGermlineCluster () throws IOException , Exception {
160
- TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_test_ND_AAC " );
160
+ TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_xxx_test_ND_AAC " );
161
161
findClusters = new FindDiscordantPairClustersMT (PairGroup .AAC , countDownLatch , findReader , compareReader , tumor , normal , countReport , "" , true );
162
- List <MatePair > pairs = TestUtil .readInMatePairs (new File (matePairDir .getAbsolutePath () + FILE_SEPARATOR + "AAC" + FILE_SEPARATOR + "chr7_test_ND_AAC " ));
162
+ List <MatePair > pairs = TestUtil .readInMatePairs (new File (matePairDir .getAbsolutePath () + FILE_SEPARATOR + "AAC" + FILE_SEPARATOR + "chr7_xxx_test_ND_AAC " ));
163
163
findClusters .classifyClusters (Arrays .asList (TestUtil .setupSolidCluster (PairGroup .AAC , "somatic" , testFolder .getRoot (), "chr7" , "chr7" )), pairs );
164
164
165
165
assertEquals (1 , findClusters .getClustersMap ().get ("germline" ).size ());
166
166
}
167
167
168
168
@ Test
169
169
public void testClassifySomaticCluster () throws IOException , Exception {
170
- TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_test_ND_AAC " );
170
+ TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_xxx_test_ND_AAC " );
171
171
findClusters = new FindDiscordantPairClustersMT (PairGroup .AAC , countDownLatch , findReader , compareReader , tumor , normal , countReport , query , true );
172
172
173
173
findClusters .classifyClusters (Arrays .asList (TestUtil .setupSolidCluster (PairGroup .AAC , "somatic" , testFolder .getRoot (), "chr7" , "chr7" )), Arrays .asList (new MatePair ("722_126_792:20110412030837875,chr4,100,200,Cxx,129,false,722_126_792:20110412030837875,chr15,300,400,Cxx,65,false,F2F1\n " )));
@@ -176,7 +176,7 @@ public void testClassifySomaticCluster() throws IOException, Exception {
176
176
177
177
@ Test
178
178
public void testClassifyNormalGermlineCluster () throws IOException , Exception {
179
- TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_test_ND_AAC " );
179
+ TestUtil .createTmpClusterFile (matePairDir .getAbsolutePath () + FILE_SEPARATOR , PairClassification .AAC , "chr7_xxx_test_ND_AAC " );
180
180
findClusters = new FindDiscordantPairClustersMT (PairGroup .AAC , countDownLatch , compareReader , findReader , normal , tumor , countReport , query , true );
181
181
182
182
findClusters .classifyClusters (Arrays .asList (TestUtil .setupSolidCluster (PairGroup .AAC , "somatic" , testFolder .getRoot (), "chr7" , "chr7" )), Collections .emptyList ());
0 commit comments