Skip to content

Triangular distance#50

Open
robertbjornson wants to merge 7 commits into
masterfrom
triangular_distance
Open

Triangular distance#50
robertbjornson wants to merge 7 commits into
masterfrom
triangular_distance

Conversation

@robertbjornson
Copy link
Copy Markdown
Contributor

Modified distance calculation that uses a triangular matrix to save memory.

@ssnn-airr
Copy link
Copy Markdown
Contributor

fastDist_explainer.html can't live in src/, it raises a Warning during R CMD check.
We also need to fix the Note raised during R CMD check "Non-standard files/directories found at top level: ‘testAA.R’ ‘testNT.R’"

Comment thread src/fastDist.cpp
K.insert(K.end(), Tt.begin(), Tt.end());
bump_pairs(Ns, K);
bump_pairs(K, Ns);
// bump_pairs(K, Ns); // The bump_pairs(Ns, K) call already handles all N-vs-known-base pairs in both directions because tri_idx normalizes (i,j) and (j,i) to the same lower-triangle position.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robertbjornson I made this change (commented out bump_pairs) to your code. Please review.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I"m unclear where this bump_pairs(K, Ns) came from. It wasn't in my checked in code. Seems fine to remove it.

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

Successfully merging this pull request may close these issues.

3 participants