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

include file_info in the data frame used for plotting #5

Closed
sebkopf opened this issue Oct 25, 2017 · 2 comments
Closed

include file_info in the data frame used for plotting #5

sebkopf opened this issue Oct 25, 2017 · 2 comments

Comments

@sebkopf
Copy link
Contributor

sebkopf commented Oct 25, 2017

this will make it possible to apply facets and other parameters on top of the base chromatogram

@japhir
Copy link
Contributor

japhir commented Nov 9, 2018

For my analysis I simply use:

  dids <- iso_read_dual_inlet("path/to/files",
    discard_duplicates = FALSE)

  info  <- dids %>%
    iso_get_file_info()

  rawdata  <- dids %>%
    iso_get_raw_data()

  flatdata  <- full_join(info, rawdata, by = "file_id") %>%
    group_by(file_id) %>%
    arrange(file_id, type, cycle) %>%
    mutate(broadid = ifelse(`Identifier 1` %in% paste0("ETH-", 1:4),
      `Identifier 1`, "other"))

  rm(info, rawdata)

and work from there, so that every line always has the fileinfo attached. Is there a better way?

EDIT:
Found a better way by looking at the plotting function sources, does this mean the issue could be closed because you already implemented it? 👍

flatdata <- iso_get_raw_data(dids, gather = TRUE, include_file_info = everything())

@sebkopf
Copy link
Contributor Author

sebkopf commented Nov 13, 2018

yes, thanks! I forgot to close it. include_file_info is indeed the best way to include the info.

@sebkopf sebkopf closed this as completed Nov 13, 2018
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

2 participants