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

Does group work in recipes? #1167

Closed
diegozea opened this issue Oct 11, 2017 · 2 comments
Closed

Does group work in recipes? #1167

diegozea opened this issue Oct 11, 2017 · 2 comments

Comments

@diegozea
Copy link
Contributor

Hi! I have this recipe: https://github.com/diegozea/MIToS.jl/blob/master/src/PDB/Plots.jl
group --> chains inside the recipe. But it is ok when group is used with the same values in the plot call.
Best regards,

Code to reproduce it on Julia 0.6:

Pkg.add("MIToS")
Pkg.checkout("MIToS")
using MIToS.PDB, Plots; plotly()
pdbfile = downloadpdb("3JC8")
res = read(pdbfile, PDBML);
plot(res) # group inside recipe doesn't work
plot(res, group=[r.id.chain for r in res if r.id.group == "ATOM"])

image

@mkborregaard
Copy link
Member

No, you cannot use group inside a recipe. Instead manually loop over your group levels and create a new series with the @series macro.

@diegozea
Copy link
Contributor Author

Thanks! I will try that :)

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

3 participants