Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrygosselin committed Mar 12, 2016
1 parent 1da7042 commit 6d5db63
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions R/assignment_ngs.R
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,9 @@ assignment_ngs <- function(data,
as_data_frame() %>%
rename(LOCUS = ID, CHROM = `#CHROM`) %>%
mutate(
CHROM = stri_replace_all_fixed(CHROM, pattern = "un", replacement = "1")
CHROM = stri_replace_all_fixed(CHROM, pattern = "un", replacement = "1"),
POS = as.character(POS),
LOCUS = as.character(LOCUS)
)

# Filter with whitelist of markers
Expand Down Expand Up @@ -636,7 +638,9 @@ assignment_ngs <- function(data,
select = tped.header.integer,
col.names = tped.header.names,
showProgress = TRUE,
data.table = FALSE)
data.table = FALSE) %>%
as_data_frame() %>%
mutate(LOCUS = as.character(LOCUS))

# Filter with whitelist of markers
if (!is.null(whitelist.markers)) {
Expand Down Expand Up @@ -784,7 +788,8 @@ assignment_ngs <- function(data,
as_data_frame() %>%
select(-Cnt) %>%
rename(LOCUS = `Catalog ID`) %>%
tidyr::gather(INDIVIDUALS, GT, -LOCUS)
tidyr::gather(INDIVIDUALS, GT, -LOCUS) %>%
mutate(LOCUS = as.character(LOCUS))

# Filter with whitelist of markers
if (!is.null(whitelist.markers)) {
Expand Down

0 comments on commit 6d5db63

Please sign in to comment.