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

Most of this should probably be in SQL to be faster/more efficient #138

Open
chasemc opened this issue Oct 11, 2019 · 0 comments
Open

Most of this should probably be in SQL to be faster/more efficient #138

chasemc opened this issue Oct 11, 2019 · 0 comments

Comments

@chasemc
Copy link
Owner

chasemc commented Oct 11, 2019

query <- DBI::dbSendStatement("SELECT *
FROM metaData
WHERE `Strain_ID` = ?",
con=conn)
DBI::dbBind(query, list(dendLabs))
selectedMeta <- DBI::dbFetch(query)
DBI::dbClearResult(query)
selectedMeta <- selectedMeta[ ,colnames(selectedMeta) %in% columnID]
uniq <- unique(selectedMeta)
selectedMeta <- sapply(uniq, function(x) selectedMeta %in% x)

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

No branches or pull requests

1 participant