-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add subRVIS gene demain / exon filters - issue 2560
- Loading branch information
Showing
4 changed files
with
106 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/main/java/function/external/subrvis/SubRvisCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,54 @@ | ||
package function.external.subrvis; | ||
|
||
import global.Data; | ||
|
||
/** | ||
* | ||
* @author nick | ||
*/ | ||
public class SubRvisCommand { | ||
|
||
public static boolean isListSubRvis = false; | ||
public static boolean isIncludeSubRvis = false; | ||
|
||
public static float subRVISDomainScorePercentile = Data.NO_FILTER; | ||
public static float subRVISDomainOEratioPercentile = Data.NO_FILTER; | ||
public static float subRVISExonScorePercentile = Data.NO_FILTER; | ||
public static float subRVISExonOEratioPercentile = Data.NO_FILTER; | ||
|
||
public static boolean isSubRVISDomainScoreValid(float value) { | ||
if (subRVISDomainScorePercentile == Data.NO_FILTER) { | ||
return true; | ||
} | ||
|
||
return value <= subRVISDomainScorePercentile | ||
|| value == Data.FLOAT_NA; | ||
} | ||
|
||
public static boolean isSubRVISDomainOEratioValid(float value) { | ||
if (subRVISDomainOEratioPercentile == Data.NO_FILTER) { | ||
return true; | ||
} | ||
|
||
return value <= subRVISDomainOEratioPercentile | ||
|| value == Data.FLOAT_NA; | ||
} | ||
|
||
public static boolean isSubRVISExonScoreValid(float value) { | ||
if (subRVISExonScorePercentile == Data.NO_FILTER) { | ||
return true; | ||
} | ||
|
||
return value <= subRVISExonScorePercentile | ||
|| value == Data.FLOAT_NA; | ||
} | ||
|
||
public static boolean isSubRVISExonOEratioValid(float value) { | ||
if (subRVISExonOEratioPercentile == Data.NO_FILTER) { | ||
return true; | ||
} | ||
|
||
return value <= subRVISExonOEratioPercentile | ||
|| value == Data.FLOAT_NA; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters