carpentries-incubator / workflows-nextflow

Workflow management with Nextflow and nf-core
https://carpentries-incubator.github.io/workflows-nextflow/
Other
25 stars 33 forks source link

Update Carpentries Gitpod environment #159

Closed mahesh-panchal closed 3 months ago

mahesh-panchal commented 3 months ago

Updates the Gitpod environment for Carpentries training.

TODO

github-actions[bot] commented 3 months ago

Thank you!

Thank you for your pull request :smiley:

:robot: This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}.

If you have files that automatically render output (e.g. R Markdown), then you should check for the following:

Rendered Changes

:mag: Inspect the changes: https://github.com/carpentries-incubator/workflows-nextflow/compare/md-outputs..md-outputs-PR-159

The following changes were observed in the rendered markdown documents:

 md5sum.txt |  2 +-
 setup.md   | 54 +++++++++++++++++++++++++++++++++++++++---------------
 2 files changed, 40 insertions(+), 16 deletions(-)
What does this mean? If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible. This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation.

:stopwatch: Updated at 2024-08-26 11:09:57 +0000

ggrimes commented 3 months ago

Install tools for exercises. Which tools need to be installed?

The tools in the environment.yml file

https://github.com/carpentries-incubator/workflows-nextflow/blob/main/episodes/data/environment.yml

mahesh-panchal commented 3 months ago

Do you want those pinned versions for a reason or do you just want the tools installed? For example, Nextflow is pinned, but presumably you want the latest version right?

ggrimes commented 3 months ago

You are right , for nextflow, python and nf-core tools non-pinned and for the specific version of the software below.

mahesh-panchal commented 3 months ago

Those three tools have been added to the environment.

Do we have a specific branch that should be checked out and where should we include launch buttons?

ggrimes commented 3 months ago

I don't have a specific branch in mind, the site is rendered from the main branch, if there any reason not to use this?

mahesh-panchal commented 3 months ago

The summary and setup describes an nf-training folder, so ideally a user should land directly in this. Gitpod only clones a repository, and it's up to us to define that the folder has the expected layout one makes in a non-Gitpod environment.

ggrimes commented 3 months ago

Is it possible as part of gitpod environment set up to create this directory and move into it or is this not advised?

tasks:
  - init: |
      mkdir -p nf-training  # Create the directory
      cd nf-training        # Change into the directory
mahesh-panchal commented 3 months ago

Yes, it's possible. My preference though would be to create a clean environment free from distracting files. But let's start with that. Better something than nothing.

mahesh-panchal commented 3 months ago

Are there any particular extensions required for vscode that you would like? Live-server is there so users can view the multiqc reports. Directly clicking on a MQC report from the side will open up the html, but one can right click it and view with the live server instead to view the rendered version.

ggrimes commented 3 months ago

ticular extensions required for vscode that you would like? Live-server is there so users can view the multiqc reports. Directly clicking on a MQC report from the side will open up the html, but one can right click it and view with the live server instead to view the rendered version.

I don't have any any particular extensions in mind as I am able to view rendered html using the environment you have already setup. Would be great if you could put any useful extensions in. Also how does the live server work can it render and display the course website within the gitpod environment?

mahesh-panchal commented 3 months ago

I've already added a task to open the course website in a panel. There's a gp preview command to do this.

The live server works by right-clicking on a html file and selecting open with live-server.