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

Method isCorrectFormat

src/rnabloom/io/FastaReader.java:46–61  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

44 }
45
46 public static boolean isCorrectFormat(String path) {
47 try {
48 // try to get the first FASTA record
49 FastaReader reader = new FastaReader(path);
50 String seq = reader.next();
51 reader.close();
52 if (seq == null) {
53 return false;
54 }
55 }
56 catch (Exception e) {
57 return false;
58 }
59
60 return true;
61 }
62
63 @Override
64 public synchronized boolean hasNext() {

Callers 11

checkInputFileFormatMethod · 0.95
runMethod · 0.95
runMethod · 0.95
getReadLengthsMethod · 0.95
getMaxReadLengthMethod · 0.95
populateGraphHelperMethod · 0.95
setReaderMethod · 0.95
setReaderMethod · 0.95
setReaderMethod · 0.95

Calls 2

nextMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected