-
Notifications
You must be signed in to change notification settings - Fork 16
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
Can't find my sample names #31
Comments
@jsaintvanne - the spectra are stored in the .msp output file. The spectra that are exported are representative of all the files. While not perfectly accurate, you can picture each individual spectrum as the average spectrum for that compound, taking into account all the data in the dataset. So given that, every spectrum is associated with every sample - it is only the signal intensity that changes, which is stored in the SpecAbund data matrix and exported .csv file. |
Thanks for your really fast answer @cbroeckl ! Here we work with a samplemetadata and different conditions but we analyze all that at the same time and I thought that ramclustR can differenciate that. So sorry or this stupid previous question and now an other one : should it be great for you to have something that take conditions of samples as input to be able to differenciate them and have the cluster in each condition (that can change a lot between blank and standard for example). |
@jsaintvanne - your sample names are delivered from the xcms object. Generally my approach to sample naming is to use concatentated factors. i.e. treatment-4hr-rep1 such that the sample name can be split into separate factors. There is a function to enable the splitting, rc.expand.sample.names. Above, this would split the two sample names into a data frame with three columns, when i use '-' as the delimiter. That said, i think that class specific clustering will be a difficult path forward:
An alternative path which may alleviate your concerns is to switch from pearson's correlation to spearman's. Rank correlation will be much less prone to the influcence of the ouliers (blanks, for example) than pearsons. This is enabled in the main ramclustr function as option cor.method. Pearson's is default, but you could set it to cor.method = spearman. |
@cbroeckl thanks for the explanation - didn't know this about the spearman correlation! I assume that another option would be to actually run the individual conditions independently and then build networks/find identical or similar features across the groups using spectral matching? |
@hechth - absolutely could be done. A few items to consider:
|
Hi,
I'm trying some worklows using ramclustR just very fast and I can't find my sample names in the output...
After take a look at the script of ramclustR function, I can see that you have a lot of results table containing all that you need (rt, intensity, cluster, etc...) But I can't find the sample names in the results MSP file (whereas the rownames of table are my sample names
Someone can help me please ?
Thanks a lot !
The text was updated successfully, but these errors were encountered: