Giter Club home page Giter Club logo

Comments (7)

wenbostar avatar wenbostar commented on August 11, 2024

The function doQCRLSC will add a new column "valueNorm" into the para@peaksData data frame. So you can export the normalized intensity generated by doQCRLSC using the following method:

para <- doQCRLSC(...)
tab <- getPeaksTable(para, valueID = 'valueNorm')

from metax.

FSYtiredtodeath avatar FSYtiredtodeath commented on August 11, 2024

Thanks for your immediate reply! @wenbostar
Actually, I checked the change in para@peaksData data frame before and after running the same code of doQCRLSC and getPeaksTable as you wrote in your reply, and I didn't find the new column "valueNorm" come out. Here's the output of getPeaksTable:
> tab <- getPeaksTable(para, valueID = 'valueNorm')
value = valueNorm
Error: value.var (valueNorm) not found in input
The version of my metaX package is 1.4.16. Would it be the problem from different version of metaX?

from metax.

wenbostar avatar wenbostar commented on August 11, 2024

Could you please provide an reproducible example?

from metax.

FSYtiredtodeath avatar FSYtiredtodeath commented on August 11, 2024

Here's a my example using built-in data sample within metaX package:

library(metaX)
para <- new("metaXpara")
pfile <- system.file("extdata/MTBLS79.txt",package = "metaX")
sfile <- system.file("extdata/MTBLS79_sampleList.txt",package = "metaX")
rawPeaks(para) <- read.delim(pfile,check.names = FALSE)
sampleListFile(para) <- sfile
para <- reSetPeaksData(para)
res <- doQCRLSC(para,cpu=1, impute = FALSE)
tab <- getPeaksTable(para, valueID = 'valueNorm')

Notably, returned value of the function doQCRLSC was a list of CV summary before and after QC-RSC, so I chose to use another variable name ‘res’ in case the original 'para' was covered.

from metax.

FSYtiredtodeath avatar FSYtiredtodeath commented on August 11, 2024

Sorry to bother you again, but please let me know if I need to provide anything else for this example. @wenbostar

from metax.

wenbostar avatar wenbostar commented on August 11, 2024

Sorry for the late reply. Below please find the right way to export the normalized data:

library(metaX)
para <- new("metaXpara")
pfile <- system.file("extdata/MTBLS79.txt",package = "metaX")
sfile <- system.file("extdata/MTBLS79_sampleList.txt",package = "metaX")
rawPeaks(para) <- read.delim(pfile,check.names = FALSE)
sampleListFile(para) <- sfile
para <- reSetPeaksData(para)
res <- doQCRLSC(para,cpu=1, impute = FALSE)
tab <- getPeaksTable(res$metaXpara, valueID = 'valueNorm')

from metax.

FSYtiredtodeath avatar FSYtiredtodeath commented on August 11, 2024

It works!
Thanks for your patience!

from metax.

Related Issues (18)

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.