Giter VIP home page Giter VIP logo

clumpedr's Introduction

clumpedr's People

Contributors

japhir avatar sebkopf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

clumpedr's Issues

remove quos_to_text from former isoreader version

On this line, I use the quos_to_text function from isoreader

name <- enquo(name) %>% quos_to_text(variable = "setting")

which I import here:
quos_to_text <- utils::getFromNamespace("quos_to_text", "isoreader")

In the newest version, this has all been cleaned up with new rlang calls. Maybe I can get rid of my whole nse.R file (which I just copied from isoreader anyway) and import functions from isoreader that are the same from settings.R, and overwrite the functions where I'd like to use default globals specific to clumpedr.

https://github.com/isoverse/isoreader/blob/7b6ceee31aff9fbe7a480c41b3353012465f5cf1/R/settings.R#L32

Maybe I can steal some of the configs from isoprocessor, but it looks like it also hasn't been updated to the newest syntax yet.
https://github.com/isoverse/isoprocessor/blob/master/R/settings.R

Add examples to main functions

Right now the basic documentation is almost there, but probably it's better to have a few example calls for each function.

Show several parameters in info message

Sometimes I'd like to show the values of a vector in an info message, like here:

## TODO: figure out how to give a message with a character vector

However, pasting it together with the rest of the message repeats the character part every time. @sebkopf any idea how to get something like this:

library(dplyr)
library(glue)
vars <- c(1, 5, 3, 9)
glue("Info: parameter values are: {vars}") %>%
 message()

to print:
"Info:parameter values are: 1, 5, 3, 9" in stead of repeating the character part?

clean_did_info

With in the function clean_did_info() the Line info is not in our did_files pulled out of isoreader. I bet his has to do with how we have isodat configured. We will need to have error checking or the ability to pass in what types of user info exist for each mass spec.

Continue ETF calculation per Preparation, even when one of the `lm` calls fails

# TODO: figure out how to make this not throw an error and quit if one

I use dplyr::do to calculate a lm within groups, but sometimes a group has too few values, or some NA values, or something else happens that makes the lm call fail with en error. It would be better if the function would continue calculations with a warning and return _NA_real in stead.
I've had a look at purrr::safely for this, but couldn't get it to work. Any ideas @sebkopf? :)

clean_did_info doesn't work if there are files with problems involved

New clean_did_info function fails when files with problems are present. This is because get_inits first does iso_get_raw_data, which omits the problematic files, and then tries to merge it with a df that includes the problem files.

If dids is a list of iso_files where some of them have problems (no data, because drop fail or something):

dids %>%
    clean_did_info("MOTU")
#>Info: mutating file info for 9637 data file(s)
#>Error: Column `s44_init` must be length 9637 (the number of rows) or one, not 9211

This goes away when I:

dids %>%
    iso_filter_files_with_problems() %>%
    clean_did_info("MOTU")

Document the `quiet` and `genplot` parameters correctly

The build checks keep complaining that quiet and genplot arguments in various functions are currently undocumented. I don't know how to exclude them from the checks. Should I write their documentation somewhere, and have all the functions that use them @inheritParams from that definition? @sebkopf a little help? :)

remove all plotting functions?

I was considering that it may be smart to get rid of all the functions that I don't use a lot before this (hopefully) starts getting used by other people, so there will be less code to maintain and the package will be more focussed on functionality in stead of feature overload. What do you think, @sebkopf?

create workflow vignette

The current vignette only shows the idea of the workflow, but doesn't include example data and doesn't illustrate some of the plotting functions and steps along the way.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.