-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read count model simulation and viewer for lphy #56
- Loading branch information
1 parent
ba32d75
commit 74a757a
Showing
21 changed files
with
190 additions
and
261 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
6 changes: 4 additions & 2 deletions
6
...phy-studio/src/main/java/module-info.java → ...phy-studio/src/main/java/module-info.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
9 changes: 9 additions & 0 deletions
9
...o-lphy-studio/src/main/java/readcountmodel/lphystudio/viewer/ReadCountModelComponent.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package readcountmodel.lphystudio.viewer; | ||
|
||
import javax.swing.*; | ||
|
||
public class ReadCountModelComponent extends JComponent { | ||
|
||
//TODO check AlignmentComponent | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
...onco-lphy-studio/src/main/java/readcountmodel/lphystudio/viewer/ReadCountModelViewer.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package readcountmodel.lphystudio.viewer; | ||
|
||
import lphy.base.evolution.coalescent.PopulationFunction; | ||
import lphy.core.model.Value; | ||
import lphystudio.app.graphicalmodelpanel.viewer.Viewer; | ||
import phylonco.lphy.evolution.readcountmodel.ReadCountData; | ||
import phylonco.lphy.evolution.readcountmodel.ReadCountModel; | ||
|
||
import javax.swing.*; | ||
|
||
public class ReadCountModelViewer implements Viewer{ | ||
public ReadCountModelViewer(){} | ||
|
||
@Override | ||
public boolean match(Object value) { | ||
return value instanceof ReadCountData || | ||
(value instanceof Value && ((Value) value).value() instanceof ReadCountData); | ||
|
||
} | ||
|
||
@Override | ||
public JComponent getViewer(Object value) { | ||
if (match(value)) { | ||
return new JTextArea(value.toString()); | ||
} | ||
String text = ((Value<ReadCountData>) value).value().toString(); | ||
return new JTextArea(text); | ||
} | ||
|
||
@Override | ||
public String toString() { return "Read Count Viewer"; } | ||
} | ||
|
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
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
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
97 changes: 0 additions & 97 deletions
97
phylonco-lphy/src/main/java/phylonco/lphy/evolution/readcountmodel/Multinomial.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.