Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add CN for unmatched samples #3

Merged
merged 2 commits into from
May 16, 2021
Merged

add CN for unmatched samples #3

merged 2 commits into from
May 16, 2021

Conversation

Kdreval
Copy link
Collaborator

@Kdreval Kdreval commented May 15, 2021

For unmatched samples where battenberg results are not available, results from controlfreec will be used instead. It pulls all controlfreec results during mysql qery into a separate dataframe, and in a pipe filters out samples that already have battenberg results. Then, 2 data frame are merged together.

as.data.frame() %>%
dplyr::filter(! ID %in% all_segs_matched$ID)

all_segs = rbind(all_segs_matched,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I have a suggestion. Can you add a column to the data frame before merging it and populate it with the tool name so it would look something like this after rbind? (showing toy example with one row from each tool)

ID chr start end LOH_flag log.ratio method
something chr1 1 100000 0 0 battenberg
somethingelse chr1 1 1203000 0 0 controlfreec

Copy link
Collaborator

Choose a reason for hiding this comment

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

You'll just need to check some of the other functions that use this function to make sure it doesn't break anything

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have annotated the method, tested with downstream functions, and pushed the update

@rdmorin rdmorin merged commit fa6ef2b into master May 16, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants