Skip to content
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

no-Alex configuration, histogram fails to calculate due to the missing trace.fret #20

Open
AI-rrr opened this issue Oct 27, 2020 · 0 comments

Comments

@AI-rrr
Copy link

AI-rrr commented Oct 27, 2020

if one uses no-alex configuration, histogram will not be calculated due to the missing trace.fret variable.
solution is to calculate it in any case:

(
trace.acc.int,
trace.acc.bg,
) = lib.imgdata.tiff_stack_intensity(
vid.acc.raw, *masks_red, raw=True
)
trace.fret = lib.math.calc_E(trace.get_intensities())
# Acceptor (if FRET)
if vid.alex:
#we need to have trace.fret calculated in any case
#trace.fret = lib.math.calc_E(trace.get_intensities())
trace.stoi = lib.math.calc_S(trace.get_intensities())
else:
# If not ALEX, discard previous vid.red data

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

No branches or pull requests

1 participant