Skip to content

update to implementation to reflect PR#106 (closes #130) - #131

Merged
bhaller merged 1 commit into
MesserLab:masterfrom
petrelharp:update_implementation
Jan 7, 2021
Merged

bhaller merged 1 commit into
MesserLab:masterfrom
petrelharp:update_implementation

Conversation

@petrelharp

Copy link
Copy Markdown
Collaborator

How's this, @hyanwong?

@hyanwong hyanwong left a comment

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.

All looks great. Just one suggestion, if I've understood correctly.

Comment thread treerec/implementation.md
the `INDIVIDUAL_FIRST_GEN` flag, so we know to keep these around through simplify.
Their genomes' node IDs are also added to `remembered_genomes_`.

1. Every new individuals' genomes each get the `NODE_IS_SAMPLE` flag,

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.

This wording suggests that every individual is added, whereas I think that (at the moment) only "remembered" and "alive" are entered. Should we say "If an individual is added, it initially gets the NODE_IS_SAMPLE flag, ..."

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

These are the nodes, i.e., the chromosomes, which are all added. I've added a clarifying note, see what you think?

@hyanwong

hyanwong commented Jan 7, 2021

Copy link
Copy Markdown
Contributor

I just notice that you can probably delete this sentence too:

// Also making it so we don't use this map at all if we're adding first-gen individuals,

@bhaller

bhaller commented Jan 7, 2021

Copy link
Copy Markdown
Contributor

@petrelharp, if I understand the comments above correctly, @hyanwong has proposed a change or two that is not yet present in this PR, so I'm holding off on merging. Ping me when this is ready to merge, thanks.

@petrelharp
petrelharp force-pushed the update_implementation branch from acc39c5 to 3bb8ad5 Compare January 7, 2021 22:07
@petrelharp
petrelharp force-pushed the update_implementation branch from 3bb8ad5 to fd47237 Compare January 7, 2021 22:09
@petrelharp

Copy link
Copy Markdown
Collaborator Author

I think this is good to merge, @bhaller - I've addressed both of Yan's comments (and I've rebased it).

@bhaller
bhaller merged commit c3d481e into MesserLab:master Jan 7, 2021
@bhaller

bhaller commented Jan 7, 2021

Copy link
Copy Markdown
Contributor

Thanks, merged. GitHub is offering to let me delete the branch; not sure what the etiquette is on that, I'm surprised it would even let me given that it's your branch not mine! :->

@petrelharp
petrelharp deleted the update_implementation branch January 8, 2021 04:22
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