Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - Jan Stanstrup

2
Courses and training / [COURSE] Introduction to Nutritional Metabolomics 2023
Course dates
26. June 2023 - 30. June 2023

Place: Copenhagen

Info, sign-up, program:
https://phdcourses.ku.dk/DetailKursus.aspx?id=110456&sitepath=NAT

Content

The course will provide a general overview of LC-MS based untargeted metabolomics from study design to results and will be exemplified with its specific application in nutrition. It will be delivered using a mixture of lectures, hands-on data preparation and analysis, computer-based practical sessions, and discussions. Visits to wet labs and instructions on human sample preparation procedures is included but there is no practical lab work.

The students will go through common steps in a typical metabolomics study using a real-life case. This case study includes plasma (or urine) samples from a nutritional intervention. The sample preparation and analysis on UPLC-QTOF has been conducted and the students will further process and analyze the acquired data with various freeware tools (e.g. R, XCMS, MZmine etc). They will finally work on identification of relevant metabolites using manual analysis assisted by several web-based databases and structure elucidation tools. The course will conclude by presentations of reports generated by the students based on the case study.

The students should expect a fairly technical course with a strong focus on the hands-on data analysis abilities and data interpretation skills. Programming skills are not a prerequisite for entering the course and students are guided through the exercises. However, for students that are not familiar with R we expect them to explore the self-study curriculum based on short videos and texts that cover essential programming concepts.
The project work has a high workload and hence evening work can be expected during the course week.


4
XCMS / Re: XCMS table results
Please do not post in more than one forum. I have removed the other posts.
5
R packages for metabolomics / Re: Difficulties in blank subtraction
Not tried suggestion if you are using XCMS:
* have the blanks in their own group for the grouping step
* Use the subset parameter in PeakGroupsParam to exclude the blanks from retention time correction models
* ...
* remove peaks only found in blanks
* blank correction
7
Courses and training / [COURSE] Introduction to Nutritional Metabolomics 2021
Course dates
28. June 2021 - 2 .July 2021

Place: Copenhagen

Info, sign-up, program:
https://phdcourses.ku.dk/DetailKursus.aspx?id=108342&sitepath=NAT

Content
The course will provide a general overview of LC-MS based untargeted metabolomics from study design to results and will be exemplified with its specific application in nutrition. It will be delivered using a mixture of lectures, hands-on data preparation and analysis, computer-based practical sessions, and discussions. Visits to wet labs and instructions on human sample preparation procedures is included but with minimal hands-on.

The students will go through common steps in a typical metabolomics study using a real-life case. This case study includes collected plasma (or urine) samples from a nutritional intervention. The sample preparation and analysis on UPLC-QTOF has been conducted and the students will further process and analyze the acquired data with various freeware tools (e.g. R, XCMS, MZmine etc). They will finally work on identification of relevant metabolites using several web-based structure elucidation tools. The course will conclude by presentations of reports generated by the students based on the case study.

The course will be structured as initial short lectures on theory followed by hands-on exercises, which will teach the students to transfer the theoretical information to practice. The students should expect a fairly technical course with a strong focus on the hands-on data analysis abilities and data interpretation skills.
9
R / Re: Find samples with high deviation in retentiontime, XCMS
I did this a few days ago for a colleague exactly the way that you describe.
Replace `xcms_p_POS_g_r_g` with your object.


Code: [Select]
library(xcms)
library(dplyr)
library(tidyr)


investigate_data <- tibble(rtime =        rtime(xcms_p_POS_g_r_g, adjusted = FALSE, bySample = TRUE),
                          adjustedRtime = rtime(xcms_p_POS_g_r_g, adjusted = TRUE, bySample = TRUE),
                          file =          basename(fileNames(xcms_p_POS_g_r_g))
                          ) %>%
    unnest(c(rtime, adjustedRtime)) %>%
    mutate(diff =          adjustedRtime - rtime)


investigate_data %>%
    filter(abs(adjustedRtime-250)<1) %>% # <-- focus on a small RT range where the outlier is clear
    group_by(file) %>%
    arrange(diff) %>% # <-- use desc if looking for a positive difference
    slice(1) %>%
    ungroup %>%
    arrange(diff)     # <-- use desc if looking for a positive difference




11
Courses and training / [COURSE] Introduction to Nutritional Metabolomics
Course dates
06 July 2020 - 10 July 2020

Place: Copenhagen

Info, sign-up, programhttps://phdcourses.ku.dk/detailkursus.aspx?id=107283&sitepath=NAT

Content
The course will provide an overview of LC-MS based untargeted metabolomics and its application in nutrition. It will be delivered using a mixture of lectures, hands-on data preparation and analysis, computer-based practical sessions, and discussions. Visits to wet labs and instructions on human sample preparation procedures is included but with minimal hands-on.

The students will go through common steps in a typical metabolomics study using a real-life case. This case study includes collected plasma (or urine) samples from a nutritional intervention. The sample preparation and analysis on UPLC-QTOF has been conducted and the students will further process and analyse the acquired data with various freeware tools (e.g. R, XCMS, MZmine and Metaboanalyst). They will finally work on identification of relevant metabolites using several web-based structure elucidation tools. The course will conclude by presentations of reports generated by the students based on the case study.

The course will be structured as initial short lectures on theory followed by hands-on exercises, which will teach the students to transfer the theoretical information to practice.
12
Other / Re: Software for generating deisotoped and charge state deconvoluted MS1 peaks
Deconvolution in the sense of one feature/variable per peak doesn't exist out of the box in any software for untargeted LC-MS that I am aware of.

The most common tools for untargeted data would be XCMS+CAMERA or MZmine. There is nothing straight forward about doing this on untargeted data though.
13
Mass spectrometry / Re: Experimental design for multiple-batch study
Yes...
If you have "paired samples" where you are not interested in the differences within the pairs it can reduce variance to put them in the same batch. For example if you have several persons you might consider having the same person in the same batch for all time course samples.

But as you say. Spread evenly conditions and randomize within the batch.

Use plenty of QC samples so that you afterwards can correct for potential intra- and inter-batch drifts.
14
R / Re: XCMS in R
Quadrupole instruments sometimes save data as chromatograms and not spectra.
You can try converting your original files with msconvert from Proteowizard and add: --simAsSpectra --srmAsSpectra
15
R / Re: Looking for help: Dimensions of profile matrices do not match !
It shows that indeed grouping did make groups. So I guess retcor must mean that non of those groups adhere to the missing and extra requirements. Try increasing those. You have a lot of samples. So you are requiring that for a peak to be used for the correction model all samples, except 1, has found the peak. And that groups where, in any 1 sample, more than one peak was merged in a peak group, cannot be used either.

try something like this as a starting point:

Code: [Select]
missing  = 200
extra   = 100

If you are including very sparse samples, like artificial mixtures or blanks, you might need to go even higher.
span =1 is also very strict but should not affect the error.