Skip to content

Commit

Permalink
Rename align_(PE/SE)(_paired)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelm committed Nov 20, 2023
1 parent 0b3e96f commit 66be63c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/aln.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ bool reverse_nam_if_needed(Nam& nam, const Read& read, const References& referen
return false;
}

static inline void align_SE(
static inline void align_single(
const Aligner& aligner,
Sam& sam,
std::vector<Nam>& nams,
Expand Down Expand Up @@ -628,7 +628,7 @@ float top_dropoff(std::vector<Nam>& nams) {
return 0.0;
}

inline void align_PE(
inline void align_paired(
const Aligner& aligner,
Sam &sam,
std::vector<Nam> &nams1,
Expand Down Expand Up @@ -967,7 +967,7 @@ void InsertSizeDistribution::update(int dist) {
}
}

void align_PE_read(
void align_or_map_paired(
const KSeq &record1,
const KSeq &record2,
Sam& sam,
Expand Down Expand Up @@ -1027,7 +1027,7 @@ void align_PE_read(
references,
record2.seq.length());
} else {
align_PE(aligner, sam, nams1, nams2, record1,
align_paired(aligner, sam, nams1, nams2, record1,
record2,
index_parameters.syncmer.k,
references, details,
Expand All @@ -1039,7 +1039,7 @@ void align_PE_read(
}


void align_SE_read(
void align_or_map_single(
const KSeq &record,
Sam& sam,
std::string &outstring,
Expand Down Expand Up @@ -1079,7 +1079,7 @@ void align_SE_read(
output_hits_paf(outstring, nams, record.name, references,
record.seq.length());
} else {
align_SE(
align_single(
aligner, sam, nams, record, index_parameters.syncmer.k,
references, details, map_param.dropoff_threshold, map_param.max_tries,
map_param.max_secondary
Expand Down
4 changes: 2 additions & 2 deletions src/aln.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class InsertSizeDistribution {
void update(int dist);
};

void align_PE_read(
void align_or_map_paired(
const klibpp::KSeq& record1,
const klibpp::KSeq& record2,
Sam& sam,
Expand All @@ -102,7 +102,7 @@ void align_PE_read(
const StrobemerIndex& index
);

void align_SE_read(
void align_or_map_single(
const klibpp::KSeq& record,
Sam& sam,
std::string& outstring,
Expand Down
4 changes: 2 additions & 2 deletions src/pc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ void perform_task(
auto record2 = records2[i];
to_uppercase(record1.seq);
to_uppercase(record2.seq);
align_PE_read(record1, record2, sam, sam_out, statistics, isize_est, aligner,
align_or_map_paired(record1, record2, sam, sam_out, statistics, isize_est, aligner,
map_param, index_parameters, references, index);
statistics.n_reads += 2;
}
for (size_t i = 0; i < records3.size(); ++i) {
auto record = records3[i];
align_SE_read(record, sam, sam_out, statistics, aligner, map_param, index_parameters, references, index);
align_or_map_single(record, sam, sam_out, statistics, aligner, map_param, index_parameters, references, index);
statistics.n_reads++;
}
output_buffer.output_records(std::move(sam_out), chunk_index);
Expand Down

0 comments on commit 66be63c

Please sign in to comment.