diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/java-genomics-toolkit/src/edu/unc/genomics/nucleosomes/NucleosomeCallsFile.java	Mon Feb 13 21:55:55 2012 -0500
@@ -0,0 +1,31 @@
+/**
+ * 
+ */
+package edu.unc.genomics.nucleosomes;
+
+import java.io.IOException;
+import java.nio.file.Path;
+
+import edu.unc.genomics.IntervalFactory;
+import edu.unc.genomics.io.TextIntervalFile;
+
+/**
+ * @author timpalpant
+ *
+ */
+public class NucleosomeCallsFile extends TextIntervalFile<NucleosomeCall> {
+
+	public NucleosomeCallsFile(Path p) throws IOException {
+		super(p, new NucleosomeCallFactory());
+	}
+	
+	public static class NucleosomeCallFactory implements IntervalFactory<NucleosomeCall> {
+		
+		@Override
+		public NucleosomeCall parse(String line) {
+			return NucleosomeCall.parse(line);
+		}
+
+	}
+
+}