Skip to content

Commit

Permalink
Parse 'best coefficients' line in qpAdm output
Browse files Browse the repository at this point in the history
  • Loading branch information
bodkan committed Dec 2, 2018
1 parent bbc88ac commit 93d8dee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions R/output_parsers.R
Expand Up @@ -180,8 +180,8 @@ read_qpWave <- function(log_lines, details = FALSE) {
# Read output log file from a qp3Pop run.
read_qpAdm <- function(log_lines) {
# parse the admixture proportions and standard errors
stats <- stringr::str_subset(log_lines, "(Jackknife mean|std. errors):") %>%
stringr::str_replace("(Jackknife mean|std. errors): +", "") %>%
stats <- stringr::str_subset(log_lines, "(best coefficients|std. errors):") %>%
stringr::str_replace("(best coefficients|std. errors): +", "") %>%
stringr::str_replace_all(" +", " ") %>%
stringr::str_replace_all("^ | $", "") %>%
stringr::str_split(" ") %>%
Expand Down
40 changes: 20 additions & 20 deletions docs/articles/tutorial.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 93d8dee

Please sign in to comment.