Sector Integration of 2D SAXS data

6 views
Skip to first unread message

Harshit Yadav

unread,
Jan 14, 2025, 9:55:28 AMJan 14
to BioXTAS RAW
Dear Jesse,
I am trying to perform sectorwise integration of 2D SAXS data but I cannot find any option for data integration. I tried looking into the documentation but can't find relevant information. 
I want to take a specific portion of the 2D image and then do integration to determine the corresponding 1D profile. Please let me know how to go about it.

Regards,
Harshit

Jesse Hopkins

unread,
Jan 14, 2025, 9:58:13 AMJan 14
to bioxt...@googlegroups.com
Hi Harshit,

You’ll need to make a configuration file specific to your data. The tutorial you want is here:
https://bioxtas-raw.readthedocs.io/en/latest/tutorial/section3.html

To do a sector wise integration you’d need to mask the image so that only the sector of interest is integrated (either with a mask excluding the rest of the image, or an inverted mask that allows only what’s under it). If you want to do this for multiple sectors in an image you’d have to make multiple configuration files with different masks.

I hope that gets you started. Let me know if you have questions.

- Jesse


----
Jesse Hopkins, PhD
Director
BioCAT, Sector 18
Advanced Photon Source

--
You received this message because you are subscribed to the Google Groups "BioXTAS RAW" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bioxtas_raw...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bioxtas_raw/ab57e08e-1601-4837-897f-162479b46bben%40googlegroups.com.

Harshit Yadav

unread,
Jan 21, 2025, 12:38:25 AMJan 21
to bioxt...@googlegroups.com
Dear Jesse,
Thank you for your help regarding radial averaging. 
I have an additional doubt regarding the profiles we get in the main plot. If I select the txt file where I have the data of intensity as a function of q, then I get a proper plot for my data. However, if I open the edf file for the same data, I get a weird pattern which is not representative of my data. I am confused as to why it happens. They are both from the same dataset, just in different format. This shouldn't make a difference to the plots but I think I am making some mistake while loading the data. I am attaching the plot for both cases. The yellow curve is from the edf file and the blue one is from the txt file.

You received this message because you are subscribed to a topic in the Google Groups "BioXTAS RAW" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bioxtas_raw/kB4l-e-iYUc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bioxtas_raw...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bioxtas_raw/BD60958B-D3C0-49DA-8E6C-D950C13A420B%40gmail.com.


--
Regards,
Harshit
txt plot.png
edf plot.png

Jesse Hopkins

unread,
Jan 21, 2025, 5:09:20 PMJan 21
to bioxt...@googlegroups.com
Hi Harshit,

The second image pretty clearly doesn't have a config file loaded. EDFs are image files, so you first need to generate an appropriate configuration file, and then you need to make sure that file is loaded when you load in the images.

The link I sent you previously contains information on generating a configuration file. Did you do that for your data? Note that the configuration file is going to be different for every experiment, you can't use the one from the tutorial for your data, you need to carry out the steps with your own calibration measurements (e.g. silver behenate measured on your setup).

All the best.

- Jesse

----
Jesse Hopkins, PhD (he/him)
Director, BioCAT
Sector 18, Advanced Photon Source
Research Associate Professor, Illinois Tech


Reply all
Reply to author
Forward
0 new messages