Skip to content

Consensus string#20

Draft
danielle-pinto wants to merge 3 commits intomainfrom
2026-02-23-cons
Draft

Consensus string#20
danielle-pinto wants to merge 3 commits intomainfrom
2026-02-23-cons

Conversation

@danielle-pinto
Copy link
Collaborator

No description provided.

we first scan for 'A', 'C', then 'G' and 'T',
so the final consensus string will be biased towards more A's, then C's, G's and T's.
This simply based on which nucleotide counts it will encounter first in the profile matrix.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I may add some examples of multiple consensus strings. I may also add another solution that returns all consensus strings.


# make profile matrix

## Is it possible to do this in a more efficient vectorized way? I wanted to see if we could do countmap() for each column in a simple way that would involve looping over each column. I think this ended up being more efficient since we are just looping over each of the nucleotides
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is it possible to do this in a more efficient vectorized way? I wanted to see if we could do countmap() for each column in a simple way that would involve looping over each column. I think this ended up being more efficient since we are just looping over each of the nucleotides

@github-actions
Copy link

1 similar comment
@github-actions
Copy link

@kescobo
Copy link
Member

kescobo commented Feb 26, 2026

Preview at https://biojulia.github.io/BioTutorials/20

Hey nice, this works!

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.

2 participants