(String fasta)
| 156 | } |
| 157 | |
| 158 | public static boolean hasOnlyOneSequence(String fasta) throws IOException { |
| 159 | FastaReader reader = new FastaReader(fasta); |
| 160 | int numSeq = 0; |
| 161 | while (reader.hasNext()) { |
| 162 | reader.next(); |
| 163 | if (++numSeq > 1) { |
| 164 | reader.close(); |
| 165 | return false; |
| 166 | } |
| 167 | } |
| 168 | reader.close(); |
| 169 | |
| 170 | return numSeq == 1; |
| 171 | } |
| 172 | |
| 173 | public static void fileToStringCollection(String path, Collection<String> c) throws FileNotFoundException, IOException { |
| 174 | BufferedReader br = getTextFileReader(path); |
no test coverage detected