Guillawme / rfret

Analyze FRET Binding Data with R
https://guillawme.github.io/rfret
Other
2 stars 5 forks source link

Implement config file to abstract column names out #35

Closed Guillawme closed 6 years ago

Guillawme commented 7 years ago

See examples here: https://www.r-bloggers.com/a-principle-of-writing-robust-r-program

With a config file mapping actual column names found in the csv files to generic names used in the functions (like "fret_channel"), the whole package will be much more generic.

Guillawme commented 6 years ago

Current idea to implement this:

Might need the lazyeval package.

Guillawme commented 6 years ago

Actually, needs the rlang package.

Guillawme commented 6 years ago

format_data() should start by checking column and sample type names and whether they match the currently loaded metadata (either provided or default).

As it is now without this check, and if the column or sample type names don't match the metadata, everything fails with a cryptic error.

This belongs to #44.