-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new element #30
Comments
If you have installed from the latest release (1.1.0) the object creation only handles CHNOSP. We have implemented support for arbitrary elements in #25 but have not done a release with these changes. You can still install these changes by installing from the latest master: In the new framework, we specify element columns with a list like so: peakObj <- as.peakData(ftms12T_edata, ftms12T_fdata, ftms12T_emeta,
edata_cname="Mass", fdata_cname="SampleID",
mass_cname="Mass", element_col_names = list("C"="C", "H"="H", "O"="O", "N"="N", "S"="S", "P"="P"),
isotopic_cname = "C13",
isotopic_notation = "1") Where the format of Currently there is limited functionality for these non-CHNOSP elements: you can just calculate element ratios with these new elements (see |
Thank you for your quick response! Your answer is incredibly helpful for my analysis. I will update to the latest version and test it out. This package is indeed very convenient, and I will continue using it. Many thanks! I have another question, I see that you used G-Test in ftmsRanalysis Introduction - ftmsRanalysis at the end when comparing the difference between two compositions, if my sample size is not that large. I mean, for one treatment I have only one sample, so how should I solve it? |
No problem, for your issue with the single sample, you will have to exclude this sample from any statistical tests.
You could specify something like |
Thank you so much for your response, this is really cool! |
Thank you for developing such a nice package, it is really convenient for us workers who are more familiar with R language!
I have a question, when my data if there are still Cl or Br elements, when calling as.peakData, how should I add to peakObj = as.peakData(e_data = data_fticrms, f_data = emeta, e_meta = e_fticrms, edata_ cname = “Mass”, mass_cname = “Mass”, fdata_cname = “SampleID”, c_cname = “C”, h_cname = “H”, o_cname = “O”, n_cname = “N”, s_cname = “S”, p_cname = “P”). Because I realized that there is nothing about Cl and Br inside the default parameters.
The text was updated successfully, but these errors were encountered: