Skip to content

Commit f6e9e94

Browse files
clang changes
Signed-off-by: AdityaPandeyCN <adityapand3y666@gmail.com>
1 parent 4ec9390 commit f6e9e94

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

src/ramcore/SamToNTuple.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#include <TFile.h>
2525
#include <TROOT.h>
2626

27-
void samtoramntuple(const char *datafile, const char *treefile, bool index,
28-
bool split, bool cache, int compression_algorithm,
27+
void samtoramntuple(const char *datafile, const char *treefile, bool index, bool split, bool cache,
28+
int compression_algorithm,
2929
uint32_t quality_policy) // NOLINT(misc-use-internal-linkage) - public API function
3030
{
3131
(void)split;
@@ -300,4 +300,3 @@ void samtoramntuple_split_by_chromosome(const char *datafile, const char *output
300300
}
301301
}
302302
}
303-

test/ramcoretests.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,3 @@ TEST_F(ramcoreTest, ConversionProducesEqualEntries)
7575
}
7676

7777
} // namespace
78-

tools/samtoramntuple.cxx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ int main(int argc, char *argv[])
1111
{
1212
std::vector<std::string> args;
1313
args.reserve(static_cast<size_t>(argc));
14-
std::for_each_n(argv, static_cast<size_t>(argc),
15-
[&](char *arg) { args.emplace_back(arg); });
14+
std::for_each_n(argv, static_cast<size_t>(argc), [&](char *arg) { args.emplace_back(arg); });
1615

1716
if (args.size() < 2) {
18-
std::cout << "Usage: " << args[0]
19-
<< " <input.sam> [output]\n";
17+
std::cout << "Usage: " << args[0] << " <input.sam> [output]\n";
2018
std::cout << "Options:\n";
2119
std::cout << " -split Split by chromosome\n";
2220
std::cout << " -only <chr> When used with -split, emit only the specified chromosome (repeatable)\n";
@@ -49,9 +47,7 @@ int main(int argc, char *argv[])
4947
} else if (arg == "-noindex") {
5048
do_index = false;
5149
} else if (arg == "-illumina" || arg == "-dropqual") {
52-
quality_mode = (arg == "-illumina")
53-
? RAMNTupleRecord::kIlluminaBinning
54-
: RAMNTupleRecord::kDrop;
50+
quality_mode = (arg == "-illumina") ? RAMNTupleRecord::kIlluminaBinning : RAMNTupleRecord::kDrop;
5551
} else if (!arg.empty() && arg[0] != '-') {
5652
output = args[static_cast<size_t>(i)].c_str();
5753
}
@@ -84,4 +80,3 @@ int main(int argc, char *argv[])
8480

8581
return 0;
8682
}
87-

0 commit comments

Comments
 (0)