Skip to content

Commit

Permalink
Merge branch 'master' into Aug-15-2023-news-release
Browse files Browse the repository at this point in the history
  • Loading branch information
sbabyanusha authored Aug 22, 2023
2 parents 2599d46 + feec2e3 commit 92bc93e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- master
- release-*
- rc
- rfc*
- demo-*
- fusion-sv-migration
- redis-branch-up-to-date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public class ExpressionEnrichmentUtil {

private static final double LOG2 = Math.log(2);
private static final String RNA_SEQ = "rna_seq";
private static final String POS = "true";
private static final String NEG = "false";
private static final List<String> posTypeList = Arrays.asList("true", "yes");
private static final List<String> negTypeList = Arrays.asList("false", "no");
private static final String ALTERED = "1";
private static final String UNALTERED = "0";
public <T extends MolecularAlteration, S extends ExpressionEnrichment> List<S> getEnrichments(
Expand Down Expand Up @@ -205,7 +205,15 @@ public <T extends MolecularAlteration, S extends ExpressionEnrichment> List<S> g
List<String> molecularDataValues = group.getValue().stream()
.map(sampleIndex -> ma.getSplitValues()[sampleIndex])
.filter(StringUtils::isNotEmpty)
.map(a -> a.equals(POS) ? ALTERED : UNALTERED)
.map(a ->{
if (posTypeList.contains(a)) {
return ALTERED;
} else if (negTypeList.contains(a)) {
return UNALTERED;
} else {
return a;
}
})
.collect(Collectors.toList());

// ignore group if there are less than 2 values
Expand Down

0 comments on commit 92bc93e

Please sign in to comment.