annotate java-genomics-toolkit/src/edu/unc/genomics/nucleosomes/NucleosomeCallsFile.java @ 0:1daf3026d231

Upload alpha version
author timpalpant
date Mon, 13 Feb 2012 21:55:55 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
1 /**
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
2 *
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
3 */
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
4 package edu.unc.genomics.nucleosomes;
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
5
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
6 import java.io.IOException;
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
7 import java.nio.file.Path;
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
8
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
9 import edu.unc.genomics.IntervalFactory;
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
10 import edu.unc.genomics.io.TextIntervalFile;
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
11
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
12 /**
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
13 * @author timpalpant
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
14 *
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
15 */
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
16 public class NucleosomeCallsFile extends TextIntervalFile<NucleosomeCall> {
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
17
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
18 public NucleosomeCallsFile(Path p) throws IOException {
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
19 super(p, new NucleosomeCallFactory());
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
20 }
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
21
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
22 public static class NucleosomeCallFactory implements IntervalFactory<NucleosomeCall> {
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
23
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
24 @Override
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
25 public NucleosomeCall parse(String line) {
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
26 return NucleosomeCall.parse(line);
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
27 }
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
28
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
29 }
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
30
1daf3026d231 Upload alpha version
timpalpant
parents:
diff changeset
31 }