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

Move li_dev4's content to li_dev5, including no-sorting read-format, … #146

Merged
merged 3 commits into from
Dec 20, 2023
Merged
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: 2 additions & 0 deletions src/candidate.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef CANDIDATE_H_
#define CANDIDATE_H_

#include <stdint.h>

namespace chromap {

struct Candidate {
Expand Down
2 changes: 2 additions & 0 deletions src/candidate_position_generating_config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef CANDIDATE_POSITION_GENERATING_CONFIG_H_
#define CANDIDATE_POSITION_GENERATING_CONFIG_H_

#include <stdint.h>

namespace chromap {

// This class holds the parameters to generate candidate position. Using the
Expand Down
2 changes: 2 additions & 0 deletions src/index_utils.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef INDEX_UTILS_H_
#define INDEX_UTILS_H_

#include <stdint.h>

#include "khash.h"

// Note that the max kmer size is 28 and its hash value is always saved in the
Expand Down
2 changes: 1 addition & 1 deletion src/mapping_in_memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct PairedEndMappingInMemory {
return mapping_in_memory2.GetFragmentStartPosition();
}

inline uint16_t GetFragmentLength() const {
inline int GetFragmentLength() const {
if (mapping_in_memory1.strand == kPositive) {
return mapping_in_memory2.ref_end_position -
mapping_in_memory1.ref_start_position + 1;
Expand Down
4 changes: 2 additions & 2 deletions src/sequence_effective_range.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ class SequenceEffectiveRange {
return;
}

std::sort(starts.begin(), starts.end());
/*std::sort(starts.begin(), starts.end());
std::sort(ends.begin(), ends.end());

if (ends[0] == -1) {
ends.erase(ends.begin());
ends.push_back(-1);
}
}*/
}

// Return false if it fails to parse the format string.
Expand Down
Loading