Skip to content

mz_tol and rt_tol are not scan parameters #126

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

Open
joewandy opened this issue Sep 3, 2020 · 3 comments
Open

mz_tol and rt_tol are not scan parameters #126

joewandy opened this issue Sep 3, 2020 · 3 comments
Assignees
Labels
refactoring Codes to tidy up

Comments

@joewandy
Copy link
Member

joewandy commented Sep 3, 2020

They're actually used for Top-N dynamic exclusion window, so should be removed from scan_params (when making ms2 scans)

https://github.com/sdrogers/vimms/blob/master/vimms/Controller/base.py#L72

@joewandy joewandy added the refactoring Codes to tidy up label Sep 3, 2020
@joewandy joewandy self-assigned this Sep 3, 2020
@sdrogers
Copy link
Collaborator

sdrogers commented Sep 3, 2020

Any suggestion as to where they should go?

@sdrogers
Copy link
Collaborator

These are just used for DEW exclusion, right? In which case they just belong to the TopN controllers? Or do they get picked up elsewhere?

@joewandy
Copy link
Member Author

joewandy commented Sep 11, 2020

Another spaghetti 🍝 code, sorry.

I started an initial attempt to get rid of these DYNAMIC_EXCLUSION_MZ_TOL and DYNAMIC_EXCLUSION_RT_TOL parameters in the TopN controller. See this commit. That was the easy part.

Then I realised DYNAMIC_EXCLUSION_RT_TOL is actually used inside the simulated mass spec. It is stored to the self.current_DEW property of the mass spec.

        next_DEW = next_scan_param.get(ScanParameters.DYNAMIC_EXCLUSION_RT_TOL)
        ...
        if next_DEW is not None:
            self.current_DEW = next_DEW

which in turn is used for time sampling ...

        current_DEW = self.current_DEW
        current_scan_duration = self._increase_time(current_level, current_N, current_DEW, next_scan_param)
        scan.scan_duration = current_scan_duration

Will fix this as part of issue #46.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Codes to tidy up
Projects
None yet
Development

No branches or pull requests

2 participants