Skip to content

Commit 4f07769

Browse files
committed
minor comment fix for accuracy
Leftover and inaccurate comment was corrected to describe behavior of file parsing in ShiftCoord and TwoColorHeatmap
1 parent 36e676c commit 4f07769

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/scripts/Coordinate_Manipulation/ShiftCoord.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static void shiftBEDInterval(File out_filepath, File input, int SHIFT, bo
4242
OUT = new PrintStream(new BufferedOutputStream(new FileOutputStream(out_filepath)));
4343
}
4444
}
45-
// Assume file is gzipped and create normal BufferedReader if not
45+
// Check if file is gzipped and instantiate appropriate BufferedReader
4646
BufferedReader br;
4747
if(GZipUtilities.isGZipped(input)) {
4848
br = new BufferedReader(new InputStreamReader(new GZIPInputStream(new FileInputStream(input)), "UTF-8"));
@@ -111,7 +111,7 @@ public static void shiftGFFInterval(File out_filepath, File input, int SHIFT, bo
111111
OUT = new PrintStream(new BufferedOutputStream(new FileOutputStream(out_filepath)));
112112
}
113113
}
114-
// Assume file is gzipped and create normal BufferedReader if not
114+
// Check if file is gzipped and instantiate appropriate BufferedReader
115115
BufferedReader br;
116116
if(GZipUtilities.isGZipped(input)) {
117117
br = new BufferedReader(new InputStreamReader(new GZIPInputStream(new FileInputStream(input)), "UTF-8"));

src/scripts/Figure_Generation/TwoColorHeatMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public static double getQuantile(ArrayList<double[]> matrix, double percent) {
367367
public static ArrayList<double[]> loadMatrix(File input) throws UnsupportedEncodingException, IOException {
368368
ArrayList<double[]> matrix = new ArrayList<double[]>();
369369
int currentRow = 0;
370-
// Assume file is gzipped and create normal BufferedReader if not
370+
// Check if file is gzipped and instantiate appropriate BufferedReader
371371
BufferedReader br;
372372
if(GZipUtilities.isGZipped(input)) {
373373
br = new BufferedReader(new InputStreamReader(new GZIPInputStream(new FileInputStream(input)), "UTF-8"));

0 commit comments

Comments
 (0)