Skip to content

Commit

Permalink
Fix bug in GetData
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Jan 7, 2024
1 parent 8dae5eb commit 940f545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/exbio/tfprio/steps/chipAtlas/GetData.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ protected Collection<Callable<Boolean>> getCallables() {
pair -> pair.getValue()[colNameIndex.get(antigenClassColName)].equals("TFs and others")).filter(
split -> tissueTypes.get().stream().anyMatch(tissueType -> tissueType.equalsIgnoreCase(
split.getValue()[colNameIndex.get(cellTypeClassColName)]))).map(pair -> {
String tf = pair.getValue()[colNameIndex.get(antigenColName)].toUpperCase();
int threshold = Integer.parseInt(pair.getValue()[colNameIndex.get(thresholdColName)]);
String[] trueSplit = pair.getKey().split(",(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)");
String tf = trueSplit[colNameIndex.get(antigenColName)].toUpperCase();
int threshold = Integer.parseInt(trueSplit[colNameIndex.get(thresholdColName)]);
String url = trueSplit[colNameIndex.get(urlColName)];
return Pair.of(tf, Pair.of(threshold, url));
}).collect(Collectors.groupingBy(Pair::getKey,
Expand Down

0 comments on commit 940f545

Please sign in to comment.