use of coloring.Config in project ASCIIGenome by dariober.
the class TrackWigglesTest method canPrintBedGraph.
@Test
public void canPrintBedGraph() throws InvalidGenomicCoordsException, IOException, InvalidRecordException, ClassNotFoundException, SQLException, InvalidColourException, InvalidConfigException {
new Config(null);
String url = "test_data/test.bedGraph.gz";
int yMaxLines = 5;
GenomicCoords gc = new GenomicCoords("chr1:1-22", 80, null, null);
TrackWiggles tw = new TrackWiggles(url, gc, 4);
tw.setYLimitMax(Float.NaN);
tw.setYLimitMin(Float.NaN);
tw.setyMaxLines(yMaxLines);
String prof = tw.printToScreen();
System.out.println(prof);
tw = new TrackWiggles("test_data/positive.bedGraph.gz", gc, 4);
tw.setYLimitMax(Float.NaN);
tw.setYLimitMin(Float.NaN);
tw.setyMaxLines(5);
prof = tw.printToScreen();
System.out.println(prof);
tw = new TrackWiggles("test_data/negative.bedGraph.gz", gc, 4);
tw.setYLimitMax(Float.NaN);
tw.setYLimitMin(Float.NaN);
tw.setyMaxLines(5);
// prof= tw.printToScreen();
System.out.println(prof);
gc = new GenomicCoords("chr1:1-52", 80, null, null);
tw = new TrackWiggles("test_data/posNeg.bedGraph.gz", gc, 4);
tw.setYLimitMax(Float.NaN);
tw.setYLimitMin(Float.NaN);
tw.setyMaxLines(14);
System.out.println(tw.printToScreen());
}
Aggregations