Welcome to TopoStats Discussions! #39
Replies: 14 comments 30 replies
-
Hi everyone, Thank you to all those who have worked on this software. I'm conducting a summer research project involving AFM imaging and DNA measurements. My project has a lot of images involved and many DNA fragments so an automated measurement software would be fantastic. I'm very new to python and was wondering if there was an installation guide or tutorial for implementing TopoStats for use in my project? Thanks again. |
Beta Was this translation helpful? Give feedback.
-
Hello! My name is Ankush Dhawan, and I am a researcher in the Mai Group at Stanford University working on imaging DNA in confinement. I came across your work when working on image processing. I wanted to test out Topostats, as it looked super promising for helping me achieve my goals. Is there a guide/readme file that explains how I can begin using Topostats on my computer with my own images (I have access to both a MacBook and a Windows computer, and can use whichever is the most compatible)? Thank you, |
Beta Was this translation helpful? Give feedback.
-
Try chaging Line 13 in 4ad2ab1 - wincertstore==0.2 in your downloaded gwyconda.yml (removing the version constraint). Please let me know if this helps :)
|
Beta Was this translation helpful? Give feedback.
-
Try getting rid of the |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, thank you to all the members of the team who have worked on this software. I have installed the software TopoStats and tried to analyze the AFM imaging with help of it. The AFM imaging was converted from the ibw format into the spm format. The software has found the image but it has the problem with the analysis. My output was 0%. What should I do to analyze my imaging successfully? Thank you. Best regard |
Beta Was this translation helpful? Give feedback.
-
Hello Sylvia Whittle,
thank you for your help. I have made a file" my_config.yaml" and placed it
into D:\test\Data\my_config.yaml\spm.spm ." Spm.spm "is the file with the
image that I want to analyze. It was the result.
[image: test1.png]
Am Fr., 25. Nov. 2022 um 17:58 Uhr schrieb Sylvia Whittle <
***@***.***>:
… @mary82104 <https://github.com/mary82104>
Thank you for sharing the log. It seems that the folder that TopoStats is
looking in (C:\Users\pharma) does not have your .spm files inside it. Did
you mean for the software to search C:\Users\pharma for your .spm files,
or did you want it to search elsewhere?
If you wanted it to search for .spm files there, then please could you
check to see if that folder has your .spm files inside it?
It seems like you might have wanted TopoStats to look inside C:\test\Test\
for your .spm file. If this is the case then you can tell TopoStats to look
there by editing a config file.
Here is how to make a config file:
base_dir: ./tests/
output_dir: ./output
warnings: ignore
cores: 4
quiet: false
file_ext: .spm
loading:
channel: Height
filter:
run: true # Options : true, false
threshold_method: std_dev # Options : std_dev (default), otsu, absolute
otsu_threshold_multiplier: 1.0
threshold_std_dev:
lower: 10.0
upper: 1.0
threshold_absolute:
lower: -1.0
upper: 1.0
gaussian_size: 1.0121397464510862 # in px
gaussian_mode: nearest
grains:
run: true # Options : true, false
# Thresholding by height
threshold_method: std_dev # Options : std_dev, otsu, absolute
otsu_threshold_multiplier: 1.0
threshold_std_dev:
lower: 10.0
upper: 1.0
threshold_absolute:
lower: -1.0
upper: 1.0
direction: upper # Options: upper, lower, both (defines whether to look for grains above or below thresholds or both)
# Thresholding by area
absolute_smallest_grain_size: 100
absolute_area_threshold:
upper: [ 400,600 ] # above surface [Low, High] in nm^2 (also takes null)
lower: [ null, null ] # below surface [Low, High] in nm^2 (also takes null)
grainstats:
run: true # Options : true, false
cropped_size: 40.0 # Length (in nm) of square cropped images (can take -1 for grain-sized box)
save_cropped_grains: true # Options : true, false
dnatracing:
run: true # Options : true, false
plotting:
run: true # Options : true, false
save_format: png # Options : see https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.savefig.html
image_set: all # Options : all, core
zrange: [null, null] # low and high height range for core images (can take [null, null])
colorbar: true # Options : true, false
axes: true # Options : true, false (due to off being a bool when parsed)
cmap: nanoscope # Options : nanoscope, afmhot
histogram_log_axis: false # Options : true, false
In order to tell TopoStats where to look for files, please copy this text,
make a file called my_config.yaml, paste this text inside it. Then place
the file in C:\test\Test\ or wherever you would like to keep it. The
first line of the file is where you tell TopoStats where to look for files.
In your case, you might want to change it to: base_dir: C:\Users\pharma\.
Save and close the file.
Then to run TopoStats using this configuration:
run_topostats --config "path_to_your_config_file"
where you should replace path_to_your_config_file with the path to where
you saved your config file. (This is just to tell it where to look for the
config file).
For example if you put my_config.yaml inside C:\Users\pharma\ then run: run_topostats
--config "C:\Users\pharma\".
I hope this helps, but do say if it doesn't.
—
Reply to this email directly, view it on GitHub
<#39 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4L2A7YSEACNZJY7SOWZKCTWKDV4ZANCNFSM4XUJQRXA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi Sylvia Whittle,
thank you for your answer. I have put the file 'my_config.yaml' into the
folder with my data. The TopoStats has created the output and put it into
Test/my_config.yaml/Processed/spm/filters/grains. But the both folders
(filters and grains) are empty. The Topostats has found and analyzed
together with our image the images from the file'minicircle' from the
folder' tests' from Topostats. The software has created the output with a
lot of pictures. I think it means that we should change some parameters of
our image in order to analyze it with your programm. Our image has pores.
It is the image of the peptidoglycan sacculus. I can send you our image if
you have time to have a look at it. You have maybe some ideas what
parameters we should change.
Once more thank you for your help.
Best regard
Maryna
Sylvia Whittle ***@***.***> schrieb am Di., 6. Dez. 2022,
17:10:
… Hi @mary82104 <https://github.com/mary82104>
Apologies for the delay. I meant that you should place the file inside the
folder with your data, for example the folder containing your data might
look like this:
|----- D:\test\Data ------|
| |
| - my_config.yaml |
| - spm.spm |
Then you should be able to run: run_topostats --config my_config.yaml in
the terminal from there.
If you're still stuck, perhaps try reading through the documentation that
we have written on how to get set up:
https://github.com/AFM-SPM/TopoStats/blob/main/docs/usage.md
But do tell me if you get stuck with it! 😄
—
Reply to this email directly, view it on GitHub
<#39 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4L2A765XQGSBDDP2FC5CQDWL5QORANCNFSM4XUJQRXA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello Sylvia Whittle,
apologies for the delay. I am very thankful, that you help me. This is the
spm file . I hope you can open it. But do tell me please if it cannot be
opened.
Once more thank you very much for your help.
Best regard
Maryna
Marina Warkentin ***@***.***> schrieb am Do., 1. Dez. 2022,
12:30:
… Hello Sylvia Whittle,
thank you for your help. I have made a file" my_config.yaml" and placed it
into D:\test\Data\my_config.yaml\spm.spm ." Spm.spm "is the file with the
image that I want to analyze. It was the result.
[image: test1.png]
Am Fr., 25. Nov. 2022 um 17:58 Uhr schrieb Sylvia Whittle <
***@***.***>:
> @mary82104 <https://github.com/mary82104>
>
> Thank you for sharing the log. It seems that the folder that TopoStats is
> looking in (C:\Users\pharma) does not have your .spm files inside it.
> Did you mean for the software to search C:\Users\pharma for your .spm
> files, or did you want it to search elsewhere?
>
> If you wanted it to search for .spm files there, then please could you
> check to see if that folder has your .spm files inside it?
>
> It seems like you might have wanted TopoStats to look inside
> C:\test\Test\ for your .spm file. If this is the case then you can tell
> TopoStats to look there by editing a config file.
>
> Here is how to make a config file:
>
> base_dir: ./tests/
> output_dir: ./output
> warnings: ignore
> cores: 4
> quiet: false
> file_ext: .spm
> loading:
> channel: Height
> filter:
> run: true # Options : true, false
> threshold_method: std_dev # Options : std_dev (default), otsu, absolute
> otsu_threshold_multiplier: 1.0
> threshold_std_dev:
> lower: 10.0
> upper: 1.0
> threshold_absolute:
> lower: -1.0
> upper: 1.0
> gaussian_size: 1.0121397464510862 # in px
> gaussian_mode: nearest
> grains:
> run: true # Options : true, false
> # Thresholding by height
> threshold_method: std_dev # Options : std_dev, otsu, absolute
> otsu_threshold_multiplier: 1.0
> threshold_std_dev:
> lower: 10.0
> upper: 1.0
> threshold_absolute:
> lower: -1.0
> upper: 1.0
> direction: upper # Options: upper, lower, both (defines whether to look for grains above or below thresholds or both)
> # Thresholding by area
> absolute_smallest_grain_size: 100
> absolute_area_threshold:
> upper: [ 400,600 ] # above surface [Low, High] in nm^2 (also takes null)
> lower: [ null, null ] # below surface [Low, High] in nm^2 (also takes null)
> grainstats:
> run: true # Options : true, false
> cropped_size: 40.0 # Length (in nm) of square cropped images (can take -1 for grain-sized box)
> save_cropped_grains: true # Options : true, false
> dnatracing:
> run: true # Options : true, false
> plotting:
> run: true # Options : true, false
> save_format: png # Options : see https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.savefig.html
> image_set: all # Options : all, core
> zrange: [null, null] # low and high height range for core images (can take [null, null])
> colorbar: true # Options : true, false
> axes: true # Options : true, false (due to off being a bool when parsed)
> cmap: nanoscope # Options : nanoscope, afmhot
> histogram_log_axis: false # Options : true, false
>
> In order to tell TopoStats where to look for files, please copy this
> text, make a file called my_config.yaml, paste this text inside it. Then
> place the file in C:\test\Test\ or wherever you would like to keep it.
> The first line of the file is where you tell TopoStats where to look for
> files. In your case, you might want to change it to: base_dir:
> C:\Users\pharma\. Save and close the file.
>
> Then to run TopoStats using this configuration:
>
> run_topostats --config "path_to_your_config_file"
>
> where you should replace path_to_your_config_file with the path to where
> you saved your config file. (This is just to tell it where to look for the
> config file).
>
> For example if you put my_config.yaml inside C:\Users\pharma\ then run: run_topostats
> --config "C:\Users\pharma\".
>
> I hope this helps, but do say if it doesn't.
>
> —
> Reply to this email directly, view it on GitHub
> <#39 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/A4L2A7YSEACNZJY7SOWZKCTWKDV4ZANCNFSM4XUJQRXA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Hi Sylvia,
there is one more file with our image.
Am So., 11. Dez. 2022 um 11:46 Uhr schrieb Marina Warkentin <
***@***.***>:
… Hello Sylvia Whittle,
apologies for the delay. I am very thankful, that you help me. This is the
spm file . I hope you can open it. But do tell me please if it cannot be
opened.
Once more thank you very much for your help.
Best regard
Maryna
Marina Warkentin ***@***.***> schrieb am Do., 1. Dez. 2022,
12:30:
> Hello Sylvia Whittle,
>
> thank you for your help. I have made a file" my_config.yaml" and placed
> it into D:\test\Data\my_config.yaml\spm.spm ." Spm.spm "is the file with
> the image that I want to analyze. It was the result.
>
> [image: test1.png]
>
> Am Fr., 25. Nov. 2022 um 17:58 Uhr schrieb Sylvia Whittle <
> ***@***.***>:
>
>> @mary82104 <https://github.com/mary82104>
>>
>> Thank you for sharing the log. It seems that the folder that TopoStats
>> is looking in (C:\Users\pharma) does not have your .spm files inside
>> it. Did you mean for the software to search C:\Users\pharma for your
>> .spm files, or did you want it to search elsewhere?
>>
>> If you wanted it to search for .spm files there, then please could you
>> check to see if that folder has your .spm files inside it?
>>
>> It seems like you might have wanted TopoStats to look inside
>> C:\test\Test\ for your .spm file. If this is the case then you can tell
>> TopoStats to look there by editing a config file.
>>
>> Here is how to make a config file:
>>
>> base_dir: ./tests/
>> output_dir: ./output
>> warnings: ignore
>> cores: 4
>> quiet: false
>> file_ext: .spm
>> loading:
>> channel: Height
>> filter:
>> run: true # Options : true, false
>> threshold_method: std_dev # Options : std_dev (default), otsu, absolute
>> otsu_threshold_multiplier: 1.0
>> threshold_std_dev:
>> lower: 10.0
>> upper: 1.0
>> threshold_absolute:
>> lower: -1.0
>> upper: 1.0
>> gaussian_size: 1.0121397464510862 # in px
>> gaussian_mode: nearest
>> grains:
>> run: true # Options : true, false
>> # Thresholding by height
>> threshold_method: std_dev # Options : std_dev, otsu, absolute
>> otsu_threshold_multiplier: 1.0
>> threshold_std_dev:
>> lower: 10.0
>> upper: 1.0
>> threshold_absolute:
>> lower: -1.0
>> upper: 1.0
>> direction: upper # Options: upper, lower, both (defines whether to look for grains above or below thresholds or both)
>> # Thresholding by area
>> absolute_smallest_grain_size: 100
>> absolute_area_threshold:
>> upper: [ 400,600 ] # above surface [Low, High] in nm^2 (also takes null)
>> lower: [ null, null ] # below surface [Low, High] in nm^2 (also takes null)
>> grainstats:
>> run: true # Options : true, false
>> cropped_size: 40.0 # Length (in nm) of square cropped images (can take -1 for grain-sized box)
>> save_cropped_grains: true # Options : true, false
>> dnatracing:
>> run: true # Options : true, false
>> plotting:
>> run: true # Options : true, false
>> save_format: png # Options : see https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.savefig.html
>> image_set: all # Options : all, core
>> zrange: [null, null] # low and high height range for core images (can take [null, null])
>> colorbar: true # Options : true, false
>> axes: true # Options : true, false (due to off being a bool when parsed)
>> cmap: nanoscope # Options : nanoscope, afmhot
>> histogram_log_axis: false # Options : true, false
>>
>> In order to tell TopoStats where to look for files, please copy this
>> text, make a file called my_config.yaml, paste this text inside it.
>> Then place the file in C:\test\Test\ or wherever you would like to keep
>> it. The first line of the file is where you tell TopoStats where to look
>> for files. In your case, you might want to change it to: base_dir:
>> C:\Users\pharma\. Save and close the file.
>>
>> Then to run TopoStats using this configuration:
>>
>> run_topostats --config "path_to_your_config_file"
>>
>> where you should replace path_to_your_config_file with the path to
>> where you saved your config file. (This is just to tell it where to look
>> for the config file).
>>
>> For example if you put my_config.yaml inside C:\Users\pharma\ then run: run_topostats
>> --config "C:\Users\pharma\".
>>
>> I hope this helps, but do say if it doesn't.
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#39 (reply in thread)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/A4L2A7YSEACNZJY7SOWZKCTWKDV4ZANCNFSM4XUJQRXA>
>> .
>> You are receiving this because you were mentioned.Message ID:
>> ***@***.***>
>>
>
|
Beta Was this translation helpful? Give feedback.
-
Hi! As one of the great powers of this Python package is that it avoids the user bias associated with the initialization, I am very interested in using TopoStats to analyze some HS-AFM frames. I did not have any problems obtaining the preliminary statistics and processed image for the test dataset (total of 21 minicircles). I would ultimately like to obtain a height profile along the length of my biomolecule of interest (DNA bound to CTCF protein); thus, would you be willing to tell me how I can obtain the x, y, z values of the fitted trace into a .csv file? |
Beta Was this translation helpful? Give feedback.
-
Hi, D:\Program Files\python\Lib\site-packages\topostats>run_topostats I'm wondering if you could help me to solve this error. Thanks. Best wishes, |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Greetings all, I am Vaishali Sharma, a 4th year PhD student at Michigan technological university, US. My work focuses on imaging viruses with AFM after antiviral treatments. I came across this after attending AFMBiomed school in 2022. Thank you all who have worked on this application to make the life a AFM user easy. |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions