-
-int bam_rmdupse(int argc, char *argv[])
-{
- samfile_t *in, *out;
- if (argc < 3) {
- fprintf(stderr, "Usage: samtools rmdupse <in.bam> <out.bam>\n");
- return 1;
- }
- in = samopen(argv[1], "rb", 0);
- out = samopen(argv[2], "wb", in->header);
- bam_rmdupse_core(in, out, 1);
- samclose(in); samclose(out);
- return 0;
-}