-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Bug]: Flattening anomoly #794
Comments
Thanks for the report @tcatley Just to check which commit your own would you be able to paste in the output of... pip show topostats
pip freeze ...and... git log --graph --pretty="%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset" (Only need the top 20-30 lines of this, no need to scroll through all the history). |
$ pip show topostats
Name: topostats
Version: 2.1.1.dev247+g111dc5b
Summary: Automated Analysis for Atomic Force Microscopy Images of Biomolecules
Home-page:
Author:
Author-email: TopoStats Team <[email protected]>, Alice Pyne <[email protected]>, Sylvia Whittle <[email protected]>, Neil Shephard <[email protected]>, Max Gamill <[email protected]>, Jean Du <[email protected]>
License: GNU Lesser GPLv3 only
Location: /Users/work/opt/anaconda3/envs/topostats_git_main/lib/python3.10/site-packages
Requires: h5py, igor, matplotlib, numpy, pandas, pyfiglet, pySPM, pyyaml, ruamel.yaml, schema, scikit-image, scipy, seaborn, tifffile, tqdm
Required-by: $ pip freeze
contextlib2==21.6.0
contourpy==1.1.0
cycler==0.11.0
fonttools==4.40.0
h5py==3.9.0
igor==0.3
imageio==2.31.1
joblib==1.2.0
kiwisolver==1.4.4
lazy_loader==0.2
matplotlib==3.7.1
networkx==3.1
numpy==1.23.4
packaging==23.1
pandas==2.0.2
Pillow==9.5.0
pyfiglet==0.8.post1
pyparsing==3.1.0
pySPM==0.2.23
python-dateutil==2.8.2
pytz==2023.3
PyWavelets==1.4.1
PyYAML==6.0
ruamel.yaml==0.17.32
ruamel.yaml.clib==0.2.7
schema==0.7.5
scikit-image==0.21.0
scikit-learn==1.2.2
scipy==1.11.0
seaborn==0.12.2
six==1.16.0
threadpoolctl==3.1.0
tifffile==2023.4.12
topostats @ file:///Users/work/Documents/TopoStats_GM/TopoStats
tqdm==4.65.0
tzdata==2023.3 * 42d1d19a - (HEAD -> main, origin/main, origin/HEAD) Merge pull request #749 from AFM-SPM/ns-rse/snoop (Fri Dec 8 00:16:06 2023 +0000) <Neil Shephard>
|\
| * cc353b9a - Moving snoop dependency to main (Tue Dec 5 17:41:55 2023 +0000) <Neil Shephard>
| * 284ec842 - Add snoop as a dependency but disable by default (Tue Dec 5 16:59:05 2023 +0000) <Neil Shephard>
* | 7d7546f0 - Merge pull request #747 from AFM-SPM/ns-rse/741-filter-entry-point (Fri Dec 8 00:14:10 2023 +0000) <Neil Shephard>
|\ \
| |/
|/|
| * a18eeb31 - Adds subparsers for further modularisation (Thu Nov 30 17:21:36 2023 +0000) <Neil Shephard>
|/
* 5a6a7609 - Merge pull request #739 from AFM-SPM/ns-rse/update-badges (Tue Nov 21 17:33:50 2023 +0000) <Neil Shephard>
|\
| * f29b0eb2 - Restore Ruff badge (Tue Nov 21 17:33:00 2023 +0000) <Neil Shephard>
* | ebfb2d6a - Merge pull request #738 from AFM-SPM/ns-rse/update-badges (Tue Nov 21 17:03:54 2023 +0000) <Neil Shephard>
|\|
:
|
Thanks @tcatley that is really useful. Not 100% clear but it looks like you have installed from the cloned repository locally (on 2023-12-08) but that would have been after I don't think its likely to make any difference to the flattening but would you mind re-running with the latest released version of TopoStats please? The following should work to create a new conda environment, activate it and install TopoStats conda create -n topostats220
conda activate topostats220
pip install topostats # This will install the latest version of TopoStats from PyPI Ping me on Slack if you have any problems setting up the Conda environment. Thanks, |
For some reason pip install topostats isn't working for me right now? I'm not sure if I've done something wrong here. (topostats220) work@Toms-MacBook-Pro ~ % pip install topostats
zsh: command not found: pip |
Looks like Conda didn't install conda install pip A useful site to bookmark for working with Conda environments (aside from their official documentation) is Conda environments for effective and reproducible research. Chapter 3 goes into detail about Conda packages, channels and |
Thanks for checking @tcatley Perhaps a solution might be to make the polynomial flattening configurable in some manner. Like most of the complex tasks its something @SylviaWhittle implemented and I'm not too familiar with the maths/methods involved. There is the Filter method remove_nonlinear_polynomial() and also remove_quadratic(). But perhaps a new method will be required. 🤔 |
Checklist
topostats process --core 1
.topostats --version
Describe the bug
Issue with flattening data that has an artefact which causes non-linear background in x
Copy of the output
n/a
Include the configuration file
To Reproduce
run topostats using above config on the file (contact me for file)
TopoStats Version
Git main branch
Python Version
3.11
Operating System
MacOS M1/M2 (post-2021)
Python Packages
No response
The text was updated successfully, but these errors were encountered: