MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / getNonEmptyLines

Method getNonEmptyLines

src/rnabloom/RNABloom.java:5794–5813  ·  view source on GitHub ↗
(String textFile)

Source from the content-addressed store, hash-verified

5792 }
5793
5794 private static String[] getNonEmptyLines(String textFile) throws IOException {
5795 ArrayList<String> lines = new ArrayList<>();
5796
5797 BufferedReader br = getTextFileReader(textFile);
5798
5799 for (String line; (line = br.readLine()) != null; ) {
5800 line = line.trim();
5801
5802 if (line.isEmpty()) {
5803 continue;
5804 }
5805
5806 lines.add(line);
5807 }
5808
5809 String[] linesArray = new String[lines.size()];
5810 lines.toArray(linesArray);
5811
5812 return linesArray;
5813 }
5814
5815 public static final String SUBSAMPLE_STROBEMER = "s";
5816 public static final String SUBSAMPLE_KMER = "k";

Callers 1

getPathsFromListFileMethod · 0.95

Calls 3

getTextFileReaderMethod · 0.80
addMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected