Skip to content

Commit dcbcba4

Browse files
src/radmeth/radmeth.cpp: printing the rowname for each site as just a string which it now is
1 parent aa9e5b1 commit dcbcba4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/radmeth/radmeth.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ radmeth(const bool show_progress, const bool more_na_info,
209209
const std::uint32_t n_threads, const std::string &table_filename,
210210
const std::string &outfile, const Regression &alt_model,
211211
const Regression &null_model, const std::uint32_t test_factor_idx) {
212-
static constexpr auto prefix_fmt = "%s\t%ld\t%c\t%s\t";
213212
static constexpr auto suffix_fmt = "\t%ld\t%ld\t%ld\t%ld\n";
214213
static constexpr auto buf_size = 1024;
215214
static constexpr auto max_lines = 16384;
@@ -326,11 +325,8 @@ that the design matrix and the proportion table are correctly formatted.
326325
n_bytes[b] = [&] {
327326
// clang-format off
328327
const int n_prefix_bytes =
329-
std::sprintf(bufs[b].data(), prefix_fmt,
330-
t_alt_model.props.chrom.data(),
331-
t_alt_model.props.position,
332-
t_alt_model.props.strand,
333-
t_alt_model.props.context.data());
328+
std::sprintf(bufs[b].data(), "%s\t",
329+
t_alt_model.props.rowname.data());
334330
// clang-format on
335331
if (n_prefix_bytes < 0)
336332
return n_prefix_bytes;

0 commit comments

Comments
 (0)