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

42 add option for export ready status in tcplsubsetchid #110

Merged

Conversation

brown-jason
Copy link
Collaborator

If we were to run the following in invitrodb we would expect no m5ids to have chid_rep == 1 where the associated aeid is export_ready == 0.

dat5 <- tcplPrepOtpt(tcplLoadData(lvl = 5, type = "mc"))
dat5 <- dat5[!is.na(chid)]
sub5 <- tcplSubsetChid(dat5)[, list(m5id, chid)]
setkey(dat5, "m5id")
setkey(sub5, "m5id")
dat5 <- sub5[dat5]
dat5[, chid_rep := 1]
dat5[is.na(chid), chid_rep := 0]
mc5_chid <- dat5[, list(m5id, chid_rep)]

…low a representative sample to be selected if the assay is not export ready 1
Copy link
Contributor

@cthunes cthunes left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@Ashley-Ko Ashley-Ko self-requested a review August 2, 2023 14:42
@brown-jason brown-jason merged commit d59dd85 into main Aug 3, 2023
1 check passed
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.

add option for export_ready status in tcplsubsetchid
3 participants