-
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.
Major effort to unify pathway analysis using KEGG MEDICUS for variant
and diff exp datatypes.
- Loading branch information
u0028003
committed
Jun 22, 2024
1 parent
216f941
commit 616a43e
Showing
20 changed files
with
2,561 additions
and
15 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
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package edu.utah.kohli; | ||
|
||
import util.gen.Misc; | ||
|
||
public class AccuGenProbe { | ||
|
||
private String originalInput; | ||
private String chr; | ||
private int pos; //this is 1 base space so subtract one before using is queries | ||
private String ref; | ||
private String alt; | ||
private String gene; | ||
private boolean ok = true; | ||
|
||
public AccuGenProbe (String rep) { | ||
//Chr_POS_REF_ALT_GENE | ||
originalInput = rep; | ||
String[] f = Misc.UNDERSCORE.split(rep); | ||
chr = f[0]; | ||
pos = Integer.parseInt(f[1]); | ||
ref = f[2]; | ||
alt = f[3]; | ||
gene = f[4]; | ||
} | ||
|
||
public String getOriginalInput() { | ||
return originalInput; | ||
} | ||
|
||
public String getChr() { | ||
return chr; | ||
} | ||
|
||
public int getPos() { | ||
return pos; | ||
} | ||
|
||
public String getRef() { | ||
return ref; | ||
} | ||
|
||
public String getAlt() { | ||
return alt; | ||
} | ||
|
||
public String getGene() { | ||
return gene; | ||
} | ||
|
||
public boolean isOk() { | ||
return ok; | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package edu.utah.kohli; | ||
|
||
import util.gen.Num; | ||
|
||
public class AccuGenProbeCounts { | ||
|
||
private int refCounts; | ||
private int altCounts; | ||
|
||
|
||
public AccuGenProbeCounts(int refCounts, int altCounts) { | ||
this.refCounts = refCounts; | ||
this.altCounts = altCounts; | ||
} | ||
|
||
public int getReadDepth(){ | ||
return refCounts+ altCounts; | ||
} | ||
|
||
public double getAlleleFraction() { | ||
return (double) altCounts/ (double)(refCounts+ altCounts); | ||
} | ||
|
||
public String toString() { | ||
return refCounts+":"+altCounts+":"+getReadDepth()+":"+Num.formatNumber(getAlleleFraction(), 3); | ||
} | ||
|
||
} |
Oops, something went wrong.