Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed parenthesis on line 52 in Makefile #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ifdef BOOST_ROOT
LDFLAGS += -L$(BOOST_ROOT)/lib
else
ifdef BOOST_INCLUDE
CPPFLAGS += -I$(BOOST_INCLUDE
CPPFLAGS += -I$(BOOST_INCLUDE)
endif

ifdef BOOST_LIB
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# cta
C++ implementation of Buenrostro adapter trimming

Installation:
`make CPPFLAGS="-I/path/to/boost/include"`

Where `/path/to/boost/include` is the folder containing header files for [Boost](https://www.boost.org/) (can be installed with `conda install -c conda-forge boost`, placing it in `~/conda/env/your_env/include`)
5 changes: 3 additions & 2 deletions src/cta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ bool is_gzipped_filename(const std::string& filename) {
}

std::regex fastq_filename_re("\\.(fq|fastq)?(\\.gz)?$");
std::string make_trimmed_filename(const std::string& filename) {
return std::regex_replace(filename, fastq_filename_re, ".trimmed.fq.gz");
std::string make_trimmed_filename(const std::string filename) {
std::string substitution = ".trimmed.fq.gz";
return std::regex_replace(filename, fastq_filename_re, substitution);
}

std::map<char, char> nucleotide_complements = {
Expand Down