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

Method isCorrectFormat

src/rnabloom/io/FastqReader.java:47–63  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

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

Callers 9

checkInputFileFormatMethod · 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

nextWithoutNameMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected