Coder Social home page Coder Social logo

tnaake / metnet Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 4.0 24.31 MB

GitHub repository for MetNet. The development version in Bioconductor can be found at:

Home Page: https://bioconductor.org/packages/devel/bioc/html/MetNet.html

R 97.15% TeX 2.85%
mass-spectrometry metabolomics metabolomics-pipeline r

metnet's People

Contributors

elvanov avatar jwokaty avatar kayla-morrell avatar liesasalzer avatar nturaga avatar tnaake avatar vobencha avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

metnet's Issues

pass `struct_adj_pos` directly to `combineStructuralStatistical`

Currently combineStructuralStatistical accepts two matrices (one structural one statistical inferrence).

  • write the function that it accepts the list of matrices from createStructuralAdjacency
  • return a list of two matrices where the second matrix contains the type with removed types that are not supported by the statistical adjacency matrix

bug fix: overlapping mz+-ppm ranges in structural

when the m/z differences between two features is small it is possible that one of the differences is negative while the other is positive (see the photo attached).

  • check: is this only a problem in directed = FALSE (as we check for the interval in directed = TRUE, without taking the absolute values)
  • when we take the absolute values of the differences, we mess up with the negatively signed difference, e.g. -1.12 will be converted to 1.12 -> we will then check in a interval of 1.12 and the upper bound. FIX: set the 1.12 to 0 when there are elements of different sign at the same corresponding cell.

@elvanov could you have a look into that and suggest a bug fix (if you do it your account is connected to the repo). The added code could go into (before the mat_1_abs <- abs(mat_1)

    if (!directed) {
        mat_1_abs <- abs(mat_1)
        mat_2_abs <- abs(mat_2)
        mat_1 <- ifelse(mat_1_abs <= mat_2_abs, mat_2_abs, mat_1_abs) ## max
        mat_2 <- ifelse(mat_1_abs > mat_2_abs, mat_2_abs, mat_1_abs) ## min
    }

IMG_20210923_104734

add assays in `structural` based on columns in transformations

for the function structural, add the possibility to add customized assays that are specified by the user, e.g. add an assay containing the ID of the type of transformation (e.g. EC Numbers or Inchi keys, ...)

  • implement in combine
  • roll over the assays in combine

implement further methods for statistical adjacency matrix generation

  • return the raw value, do not return binary values as now, but create this only later
  • top 1: take top N from all methods, can return more than N features
  • top 2: take 2nd top N from all methods, returns max N features
  • mean: take the averaged from all methods top N: returns max N features
  • threshold: define for all methods threshold and return values that are above the threshold

reduce dependencies

MetNet currently depends on 138 dependencies. Try to reduce the number of dependencies.

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.