+#include <cstdio>
+#include <cstring>
+#include <cstdlib>
#include <iostream>
+
#include "wiggle.h"
+using namespace std;
+
int main(int argc, char* argv[]) {
- if (argc != 2) {
- printf("Usage: rsem-bam2readdepth sorted_bam_input\n");
- std::exit(1);
- }
+ if (argc != 2) {
+ printf("Usage: rsem-bam2readdepth sorted_bam_input\n");
+ exit(-1);
+ }
+
ReadDepthWriter depth_writer(std::cout);
build_wiggles(argv[1], depth_writer);
- return 0;
+ return 0;
}