Skip to content

Commit

Permalink
fix CpG methyl status in figure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ke Hu committed Jul 26, 2015
1 parent 16a055b commit 67f9c5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions BSPAT/src/edu/cwru/cbc/BSPAT/core/DrawPattern.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ public void drawPattern(PatternLink patternLink) throws IOException {

if (patternLink.getPatternType().equals(PatternLink.METHYLATION)) {
int startPos = statList.get(0).getPosition() < 0 ? 0 : statList.get(0).getPosition();
int endPos = statList.get(statList.size() - 1)
.getPosition() == targetLength - 1 ? targetLength - 1 : statList.get(statList.size() - 1)
.getPosition() + 1;
if (strand.equals("-")) {
endCoor = endCoor - startPos;
beginCoor = endCoor - targetLength + 1;
Expand Down
4 changes: 2 additions & 2 deletions BSPAT/src/edu/cwru/cbc/BSPAT/core/ReadAnalysisResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ public List<PatternResult> readPatternFile(String region, String patternType) th
}
patternResult.addCpG(cpg);
} else if (items[0].charAt(i) == '@') {
cpg = new CpGSitePattern(i, false);
cpg = new CpGSitePattern(i, true);
if (i + 1 < regionLength && items[0].charAt(i + 1) == '@') {
i++;
} else if (i == 0) {
cpg = new CpGSitePattern(i - 1, false);
cpg = new CpGSitePattern(i - 1, true);
}
patternResult.addCpG(cpg);
} else if (items[0].charAt(i) == 'A' || items[0].charAt(i) == 'C' || items[0].charAt(i) == 'G' ||
Expand Down

0 comments on commit 67f9c5a

Please sign in to comment.