Skip to content

Commit

Permalink
Version 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
jernst98 committed Aug 2, 2018
1 parent d98a39a commit 3b42ecd
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 46 deletions.
Binary file modified ChromHMM.jar
Binary file not shown.
Binary file modified ChromHMM.zip
Binary file not shown.
Binary file modified ChromHMM_manual.pdf
Binary file not shown.
94 changes: 48 additions & 46 deletions edu/mit/compbio/ChromHMM/ChromHMM.java
Original file line number Diff line number Diff line change
Expand Up @@ -5213,21 +5213,7 @@ else if (ch=='1')
{
pwprobszip.finish();
pwprobszip.close();
}

//if segment print was requested then we are going to go close those printwriters
if (bprintsegment)
{
Iterator itr = hmcellToFourColPW.values().iterator();
while (itr.hasNext())
{
GZIPOutputStream pwzip = (GZIPOutputStream) itr.next();
//PrintWriter pw = (PrintWriter) itr.next();
pwzip.finish();
pwzip.close();
//pw.close();
}
}
}
}
else
{
Expand Down Expand Up @@ -5350,19 +5336,33 @@ else if (ch=='1')
{
pwprobs.close();
}

//if segment print was requested then we are going to go close those printwriters
if (bprintsegment)
}
}

//if segment print was requested then we are going to go close those printwriters
if (bprintsegment)
{
Iterator itr = hmcellToFourColPW.values().iterator();
if (bgzip)
{
while (itr.hasNext())
{
Iterator itr = hmcellToFourColPW.values().iterator();
while (itr.hasNext())
{
PrintWriter pw = (PrintWriter) itr.next();
pw.close();
}
GZIPOutputStream pwzip = (GZIPOutputStream) itr.next();
//PrintWriter pw = (PrintWriter) itr.next();
pwzip.finish();
pwzip.close();
//pw.close();
}
}
}
else
{
while (itr.hasNext())
{
PrintWriter pw = (PrintWriter) itr.next();
pw.close();
}
}
}
}


Expand Down Expand Up @@ -6068,17 +6068,6 @@ public void makeSegmentation() throws IOException
pwprobszip.close();
}

//if segment print was requested then we are going to go close those printwriters
if (bprintsegment)
{
Iterator itr = hmcellToFourColPW.values().iterator();
while (itr.hasNext())
{
GZIPOutputStream pwzip = (GZIPOutputStream) itr.next();
pwzip.finish();
pwzip.close();
}
}
}
else
{
Expand Down Expand Up @@ -6201,18 +6190,31 @@ public void makeSegmentation() throws IOException
{
pwprobs.close();
}

//if segment print was requested then we are going to go close those printwriters
if (bprintsegment)
}
}

//if segment print was requested then we are going to go close those printwriters
if (bprintsegment)
{
Iterator itr = hmcellToFourColPW.values().iterator();
if (bgzip)
{
while (itr.hasNext())
{
Iterator itr = hmcellToFourColPW.values().iterator();
while (itr.hasNext())
{
PrintWriter pw = (PrintWriter) itr.next();
pw.close();
}
GZIPOutputStream pwzip = (GZIPOutputStream) itr.next();
pwzip.finish();
pwzip.close();
}
}
else
{
//if segment print was requested then we are going to go close those printwriters
while (itr.hasNext())
{
PrintWriter pw = (PrintWriter) itr.next();
pw.close();
}
}
}
}

Expand Down Expand Up @@ -11176,7 +11178,7 @@ public static void main(String[] args) throws IOException

if (szcommand.equalsIgnoreCase("Version"))
{
System.out.println("This is Version 1.16 of ChromHMM (c) Copyright 2008-2012 Massachusetts Institute of Technology");
System.out.println("This is Version 1.17 of ChromHMM (c) Copyright 2008-2012 Massachusetts Institute of Technology");
}
else if ((szcommand.equals("BinarizeBam"))||(szcommand.equalsIgnoreCase("BinarizeBed")))
{
Expand Down

0 comments on commit 3b42ecd

Please sign in to comment.