(String textFile)
| 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"; |
no test coverage detected