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

Mini state blog #1

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Mini state blog #1

wants to merge 7 commits into from

Conversation

matthewlawrenceklein
Copy link
Contributor

This PR serves to bring @meren and @mschecht into the fold for a state-centric blogpost. Matt's going to add a section related to his usage of mini states in the ecophylo workflow, and Meren will hopefully fact-check and review the post for tone and other intangibles ;)

Meren, let me know if this would make more sense as a fiesta issue until the post is in 'publishable condition' and I can migrate the discussion there!

@meren
Copy link
Member

meren commented Feb 14, 2022

This is a great place to discuss this, @matthewlawrenceklein! Thank you for the PR. I look forward to reading both sections from you and Matt together :)

One quick note: lines like this don't render well:

(...) we can run anvi-export-state -p PROFILE.db -o my_perfect_figure.json -s my_perfect_figure to export (...)

It is better to have a code block that is dedicated to that command so it looks more like this everywhere:

(...) we can run,

anvi-export-state -p PROFILE.db \
                  -o my_perfect_figure.json \
                  -s my_perfect_figure

to export (...)

Another quick note is that minified states are best for programmers, and not users. For instance, here is a mini state used by anvi-display-functions, where the programmer replaces __FUNCTIONS_LAYER_NAME__ in this template with whatever is the function layer name is right before putting it into a new profile database to generate. I think it would be great to cover this aspect of mini states somehow :)

@matthewlawrenceklein
Copy link
Contributor Author

It is better to have a code block

good call. done!

minified states are best for programmers, and not users.

Do you think it would make more sense to branch this post off into two discrete posts: one covering the basic concepts and programs related to working with state in anvio, the other going into mini states and their programmatic use cases?

@meren
Copy link
Member

meren commented Feb 14, 2022

I'm sure programmers could benefit from learning more about the utility of state, and users from seeing additional ways to use it.

I would start from a general description of state, and then mention that there are two main sections in this post, for users, and for developers, and then divide the content into two :)

@meren
Copy link
Member

meren commented Feb 14, 2022

divide the content into two

by which I mean distinct subsections in the same post :)

@matthewlawrenceklein
Copy link
Contributor Author

mention that there are two main sections in this post, for users, and for developers,

perfect! A state-centric blog post for everyone!

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

Successfully merging this pull request may close these issues.

None yet

2 participants