GithubHelp home page GithubHelp logo

recetox / mfassignr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skschum/mfassignr

0.0 0.0 2.0 95.42 MB

The MFAssignR package was designed for multi-element molecular formula (MF) assignment of ultrahigh resolution mass spectrometry measurements. A number of tools for internal mass recalibration, MF assignment, signal-to-noise evaluation, and unambiguous formula selections are provided.

License: GNU General Public License v3.0

R 100.00%

mfassignr's People

Contributors

hechth avatar kristinagomoryova avatar skschum avatar wverastegui avatar zargham-ahmad avatar

mfassignr's Issues

Create example wrapper for KMDNoise

Create a small example on how to call the KMDNoise estimation function with tabular peak data (multiple samples) and how to apply the estimated level as a filter.

Draft a release of MFAssignR

This needs to be done to create the bioconda package and should be done after fixing and re-arranging the package structure.

Refactor the IsoFiltR function

  • Apply formatting
  • Rename variables to have matching names
  • Pull out constants and put them into global variables with matching names in a first step
  • Extract code into functions where possible

Remove duplciated SNplot function

KMDNoise line 166 re-defines the SNplot function which is also defined in HistNoise. One of the implementations should be removed if they are not actually different.

Refactor the MFAssignCHO module

As the function is really long and the code is hard to read, the function should be refactored so that it also becomes easier to re-use code and extend the module in the future.

It also seems that some code from the IsoFiltR is copy-pasted in the MFAssignCHO module, so it is worth checking where code was potentially taken from or whether some steps might already be contained in other functions.

Remove forced column ordering in KMDNoise

The columns should be expected but not in a set order of things.

KMDNoise <- function(df, upper.y = 0.2, lower.y = 0.05, upper.x = NA, lower.x = NA){
names(df)[1] <- "mass"
names(df)[2] <- "intensity"
upper.x <- ifelse(is.na(upper.x)== TRUE, upper.x <- max(df$mass), upper.x <- upper.x)
lower.x <- ifelse(is.na(lower.x)== TRUE, lower.x <- min(df$mass), lower.x <- lower.x)

Investigate code of MFAssignCHO and MFAssign modules

These modules are responsible for formula annotation and might share some code or concepts. It would be important to figure whether

  • MFAssignCHO is a special case of MFAssign
  • code is shared across the modules
  • one function calls the other one?

More things which we should look at should be discussed.

Find explanation for magic numbers in IsoFiltR module

The IsoFiltR module has some magic numbers that don't seem to have an explanation. There is some dissteration available (TODO: provide link) which contains information of those numbers. Otherwise, explanation might be somewhere in the paper but it doesn't seem so at this point.

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.