Skip to content

Commit 3a4c0cf

Browse files
authored
Merge pull request #6 from PankratzLab/headerSearch
MatchMaker: search for strings that equal rather than contain factorName
2 parents 66fe887 + 2662955 commit 3a4c0cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/pankratzlab/internal/gwas/MatchMaker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public static HashMap<Integer, Double> getNumericColumnsForClustering(Path sampl
195195
String[] header = origSamplesFile.readLine().trim().split(PSF.Regex.GREEDY_WHITESPACE);
196196
for (int i = 0; i < numericFactorNames.size(); i++) {
197197
for (int j = 0; j < header.length; j++) {
198-
if (header[j].contains(numericFactorNames.get(i))) {
198+
if (header[j].equals(numericFactorNames.get(i))) {
199199
columnsToUse.put(j, doubleLoadings.get(i));
200200
}
201201
}

0 commit comments

Comments
 (0)