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

Bug: object bool_vals not found #46

Open
howardbaik opened this issue Jul 8, 2024 · 1 comment
Open

Bug: object bool_vals not found #46

howardbaik opened this issue Jul 8, 2024 · 1 comment
Assignees

Comments

@howardbaik
Copy link
Contributor

Inside of the test-gimap_filter branch, I ran these lines from the example for gimap_filter():

gimap_dataset <- get_example_data("gimap")
gimap_dataset <- gimap_filter(gimap_dataset)

I get this error message: Error: object 'bool_vals' not found. The traceback shows me this error occurs here:

gimap/R/02-filter.R

Lines 100 to 107 in 85c0e44

gimap_dataset$filtered_data$removed_pg_ids <- cbind(gimap_dataset$metadata$pg_ids[combined_filter,], one_filter_df[combined_filter,]) %>% #add the IDs as a column together with the TRUEs and FALSEs for each filter, focusing only on pgRNAs which are in some way flagged for removal
pivot_longer(starts_with("filter_"), #pivot longer so that IDs are repeated and filter names are listed in a column and the last column (`boolVals`) are TRUEs and FALSEs
names_to = "filter_name",
values_to = "bool_vals") %>%
filter(bool_vals == TRUE) %>% #drop rows where boolVals is false, so this leaves only filters that flagged a pgRNA for removal
select(id, filter_name) %>% #drop the boolVals column because don't need it anymore
group_by(id) %>% #group by the pgRNA constructs
summarize(relevantFilters = toString(filter_name)) #and make a column that comma separates the relevant filters

@howardbaik howardbaik changed the title Bug: object 'bool_vals' not found Bug: object bool_vals not found Jul 8, 2024
@cansavvy cansavvy self-assigned this Jul 17, 2024
@cansavvy
Copy link
Collaborator

Thanks for tracking this! I'll dive into it!

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

No branches or pull requests

2 participants