Skip to content

Commit bafc90d

Browse files
Merge pull request #45 from smithlabcode/optimizing_duplicate_remover
Optimizing duplicate remover
2 parents 3d83188 + 8883d92 commit bafc90d

6 files changed

Lines changed: 380 additions & 400 deletions

File tree

Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is part of dnmtools
22
#
3-
# Copyright (C) 2022 Andrew D. Smith
3+
# Copyright (C) 2023 Andrew D. Smith
44
#
55
# Authors: Andrew D. Smith
66
#
@@ -116,7 +116,7 @@ dnmtools_SOURCES += src/analysis/hypermr.cpp
116116

117117
dnmtools_SOURCES += src/utils/clean-hairpins.cpp
118118
dnmtools_SOURCES += src/utils/guessprotocol.cpp
119-
dnmtools_SOURCES += src/utils/duplicate-remover.cpp
119+
dnmtools_SOURCES += src/utils/uniq.cpp
120120
dnmtools_SOURCES += src/utils/merge-bsrate.cpp
121121
dnmtools_SOURCES += src/utils/format-reads.cpp
122122
dnmtools_SOURCES += src/utils/lc-approx.cpp

pipeline/Snakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ rule samtools_sort:
180180

181181
rule remove_duplicates:
182182
"""
183-
Uses the duplicate-remover tool to remove duplicate reads in a
183+
Uses the uniq tool to remove duplicate reads in a
184184
mapped read file and produce statistics on duplication level.
185185
"""
186186
input:

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ analysis/levels.o analysis/methcounts.o analysis/methentropy.o \
6464
analysis/methstates.o analysis/multimethstat.o analysis/pmd.o \
6565
analysis/roimethstat.o mlml/mlml.o radmeth/dmr.o radmeth/methdiff.o \
6666
radmeth/radmeth-adjust.o radmeth/radmeth-merge.o radmeth/radmeth.o \
67-
utils/clean-hairpins.o utils/duplicate-remover.o utils/fast-liftover.o \
67+
utils/clean-hairpins.o utils/uniq.o utils/fast-liftover.o \
6868
utils/format-reads.o utils/guessprotocol.o utils/lc-approx.o \
6969
utils/lift-filter.o utils/merge-bsrate.o utils/merge-methcounts.o \
7070
utils/symmetric-cpgs.o utils/selectsites.o

src/dnmtools.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/* Copyright (C) 2022 University of Southern California and
2-
* Andrew D. Smith and Guilherme Sena
1+
/* Copyright (C) 2022-2023 Andrew D. Smith and Guilherme Sena
32
*
4-
* Authors: Andrew D. Smith and Song Qiang and Guilherme Sena
3+
* Authors: Andrew D. Smith and Guilherme Sena
54
*
65
* This program is free software: you can redistribute it and/or
76
* modify it under the terms of the GNU General Public License as
@@ -53,7 +52,7 @@ int main_radmeth_adjust(int argc, const char **argv);
5352
int main_radmeth(int argc, const char **argv);
5453
int main_radmeth_merge(int argc, const char **argv);
5554
int main_clean_hairpins(int argc, const char **argv);
56-
int main_duplicate_remover(int argc, const char **argv);
55+
int main_uniq(int argc, const char **argv);
5756
int main_fast_liftover(int argc, const char **argv);
5857
int main_format_reads(int argc, const char **argv);
5958
int main_guessprotocol(int argc, const char **argv);
@@ -151,7 +150,7 @@ main(int argc, const char **argv) {
151150
else if (strcmp(argv[1], "radadjust") == 0) ret = main_radmeth_adjust(argc - 1, argv + 1);
152151
else if (strcmp(argv[1], "radmerge") == 0) ret = main_radmeth_merge(argc - 1, argv + 1);
153152
else if (strcmp(argv[1], "cleanhp") == 0) ret = main_clean_hairpins(argc - 1, argv + 1);
154-
else if (strcmp(argv[1], "uniq") == 0) ret = main_duplicate_remover(argc - 1, argv + 1);
153+
else if (strcmp(argv[1], "uniq") == 0) ret = main_uniq(argc - 1, argv + 1);
155154
else if (strcmp(argv[1], "fastlift") == 0) ret = main_fast_liftover(argc - 1, argv + 1);
156155
else if (strcmp(argv[1], "format") == 0) ret = main_format_reads(argc - 1, argv + 1);
157156
else if (strcmp(argv[1], "guessprotocol") == 0) ret = main_guessprotocol(argc - 1, argv + 1);

0 commit comments

Comments
 (0)