Skip to content

Commit

Permalink
merge showTargetCoor
Browse files Browse the repository at this point in the history
  • Loading branch information
lancelothk committed Feb 10, 2016
1 parent c5246d8 commit e022fa9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .idea/artifacts/BSPAT.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/artifacts/BSPAT_war_exploded.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BSPAT/BSPAT.iml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<SOURCES />
</library>
</orderEntry>
<orderEntry type="library" name="apache http" level="project" />
<orderEntry type="library" name="jstl-1.2.1" level="project" />
<orderEntry type="module-library" scope="TEST">
<library name="JUnit4">
Expand All @@ -54,6 +53,7 @@
<SOURCES />
</library>
</orderEntry>
<orderEntry type="library" name="apache http" level="project" />
</component>
<component name="org.twodividedbyzero.idea.findbugs">
<option name="_basePreferences">
Expand Down
10 changes: 5 additions & 5 deletions BSPAT/src/edu/cwru/cbc/BSPAT/core/DrawPattern.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ public void drawPattern(PatternLink patternLink) throws IOException {
patternLink.setGBResultLink(methylWriter.getGBLinkFileName());
patternLink.setFigureResultLink(methylWriter.getFigureName());

buildFigureFrame(methylWriter.getGraphWriter(), imageHeight, imageWidth, height, left, coordinate, targetLength,
statList);
buildFigureFrame(methylWriter.getGraphWriter(), imageHeight, imageWidth, height, left, chr,
String.valueOf(beginCoor), String.valueOf(endCoor), targetLength, statList);

// 4. add CpG sites
DecimalFormat percent = new DecimalFormat("##.00%");
Expand Down Expand Up @@ -274,8 +274,8 @@ public void drawASMPattern(ReportSummary reportSummary, PatternResult patternWit
reportSummary.setASMGBLink(ASMWriter.getGBLinkFileName());
reportSummary.setASMFigureLink(ASMWriter.getFigureName());

buildFigureFrame(ASMWriter.getGraphWriter(), imageHeight, imageWidth, height, left, coordinate, refLength,
statList);
buildFigureFrame(ASMWriter.getGraphWriter(), imageHeight, imageWidth, height, left, chr,
String.valueOf(beginCoor), String.valueOf(endCoor), refLength, statList);

DecimalFormat percent = new DecimalFormat("##.00%");

Expand Down Expand Up @@ -321,7 +321,7 @@ public void drawASMPattern(ReportSummary reportSummary, PatternResult patternWit
height + HEIGHT_INTERVAL, left);
// set snp info
if (patternWithAllele.hasAllele()) {
int snpQueryPos;
long snpQueryPos;
switch (strand) {
case "+":
snpQueryPos = convertCoordinates(chr, coordinateMap.get(region).getStart(), "hg38",
Expand Down
4 changes: 2 additions & 2 deletions BSPAT/web/WEB-INF/config.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gmailUsername=username
gmailPassword=password
bismarkPath=/path/bismark_v0.14.2_noSleep/
bowtiePath=/path/bowtie-1.1.1/
bismarkPath=/home/lancelothk/software/bismark_v0.14.2_noSleep/
bowtiePath=/home/lancelothk/software/bowtie-1.1.1/
figure_font=Arial
useSingleThread=FALSE
1 change: 1 addition & 0 deletions BSPAT_analysis/BSPAT_analysis.iml