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

Structure of aln.cpp #366

Open
marcelm opened this issue Nov 20, 2023 · 1 comment
Open

Structure of aln.cpp #366

marcelm opened this issue Nov 20, 2023 · 1 comment

Comments

@marcelm
Copy link
Collaborator

marcelm commented Nov 20, 2023

This shows which functions call which other functions in aln.cpp. This is an updated version of #98.

I’m documenting this because I think some functions should be renamed to make it easier to remember what function does what. I will update this over time.

Paired end

graph LR;
    align_or_map_paired --> shuffle_top_nams;
    align_or_map_paired --> output_hits_paf_PE;
    align_or_map_paired --> align_paired;
    align_or_map_paired --> get_best_map_location;

    align_paired --> is_proper_nam_pair;
    align_paired --> rescue_read;
    align_paired --> extend_seed;
    align_paired --> get_best_scoring_nam_pairs;
    align_paired --> joint_mapq_from_high_scores;
    align_paired --> is_proper_pair;
    align_paired --> proper_pair_mapq;
    align_paired --> top_dropoff;

    extend_seed --> hamming_distance;
    extend_seed --> hamming_align;
    extend_seed --> Aligner.align;
    get_best_scoring_nam_pairs --> is_proper_nam_pair;
    rescue_align --> has_shared_substring;
    rescue_align --> Aligner.align;
    rescue_read --> extend_seed;
    rescue_read --> rescue_align;
    rescue_read --> get_best_scoring_pairs;
    rescue_read --> joint_mapq_from_alignment_scores;
    rescue_read --> is_proper_pair;
    joint_mapq_from_high_scores --> joint_mapq_from_alignment_scores;
    get_best_map_location --> get_best_scoring_nam_pairs;
Loading

Single end

graph LR;
    align_or_map_single --> shuffle_top_nams;
    align_or_map_single --> align_single;
    align_or_map_single --> output_hits_paf;
    align_single --> reverse_nam_if_needed;
    align_single --> extend_seed;

    extend_seed --> hamming_distance;
    extend_seed --> hamming_align;
    extend_seed --> Aligner.align;
Loading
@ksahlin
Copy link
Owner

ksahlin commented Nov 20, 2023

Good idea! Functions like get_best_scoring_nam_pairs are probably better represented by a name like score_nam_pairs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants