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

Many changes #149

Merged
merged 13 commits into from
Jul 11, 2024
Merged

Many changes #149

merged 13 commits into from
Jul 11, 2024

Conversation

bebatut
Copy link
Member

@bebatut bebatut commented Jul 9, 2024

  • Rename shared
  • Merge some bash scripts
  • Expand README, including remove mention of Metadata Extractor
  • Make wordcloud and interactive table generation more generic
  • Generate tools.html and tutorials.html - Fix Add tutorial interactive tables #129
  • Add index.html embeding tools.html and tutorials.html

Copy link
Collaborator

@paulzierep paulzierep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great code improvements! Some minor comments and suggestions from my side.

json_output="results/${1}_tools.json"

if [[ $1 =~ "01" ]]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the long run, it will probably be cleaner to add an extra-repositories flag and run it ones independently of the matrix CI.

bin/extract_all_tools.sh Outdated Show resolved Hide resolved
fi
else
echo "Tool extraction";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this func to allow CI independent run of the WF ? - then nice

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that is the idea. Having the test and other commands in 1 script


fi;
done
if [ ! -z $1 ]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if the there is a variable for this script, only run the filter on microgalaxy ? is this for the test ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make it more implicit, like if [ $1=="test" ]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if the there is a variable for this script, only run the filter on microgalaxy ? is this for the test ?

Yes it is for the test

bin/create_interactive_table.py Outdated Show resolved Hide resolved
bin/create_interactive_table.py Outdated Show resolved Hide resolved
--all-tools-json "results/test_tools.json" \
--planemo-repository-list "test.list" \
--test
bash bin/extract_all_tools.sh test
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did u switch back to the bash script, does set -e work to make it stop on python error ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To have only one location to modify when we modify the Python script and avoid forgetting

# Usage

## Prepare environment
# Prepare environment
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add this below Extract all tools outside a GitHub Action. And any objection to use conda instead of virtualenv ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And any objection to use conda instead of virtualenv ?

As we could have both virtualenv and conda documented. I usually favor virtualenv when we have Python only project (even if I use it within a conda env 😅) because people might prefer avoid using conda then

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add this below Extract all tools outside a GitHub Action.

I get the point. The only thing is it is useful for Training too

bin/get_community_tools.sh Outdated Show resolved Hide resolved
@paulzierep
Copy link
Collaborator

Nice, the tests work as well !

README.md Outdated Show resolved Hide resolved
@paulzierep paulzierep merged commit 2c5cde7 into main Jul 11, 2024
8 checks passed
@bebatut bebatut deleted the code_work branch July 11, 2024 13:23
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.

Add tutorial interactive tables
2 participants