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

Master html creation with timestamps #43

Conversation

ryanjameskennedy
Copy link

The following was added:

  • Added a master.html template for jinja py script
  • Added a python script that generates a master html file using jinja
  • Added cmd.config for Lund hospital specifications
  • Added a local module generate_master_html
  • Added params.trace_timestamp to nextflow.config
  • Added changelog_update_reminder GA workflow

@ryanjameskennedy ryanjameskennedy requested a review from a team as a code owner February 4, 2025 13:10
@ryanjameskennedy ryanjameskennedy linked an issue Feb 4, 2025 that may be closed by this pull request
@ryanjameskennedy ryanjameskennedy force-pushed the master-html-creation-with-timestamps branch from 4bc8367 to b8d1ae1 Compare February 17, 2025 15:21
@mhkc
Copy link

mhkc commented Feb 18, 2025

Is there a reason why you run a function in the config just to set a timestamp that is being passed as an argument to a python script?

Why not set the timestamp in the python script instead?


script:
"""
generate_master_html.py --csv ${csv} --html ${params.master_template} --timestamp ${params.trace_timestamp}
Copy link
Author

Choose a reason for hiding this comment

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

We could do that but I'm not sure that would solve this problem. That file does exist at that location on out file server. We're not binding /fs1 is all.

@ryanjameskennedy ryanjameskennedy force-pushed the master-html-creation-with-timestamps branch from 3089059 to b35c2d3 Compare February 18, 2025 09:46
@ryanjameskennedy
Copy link
Author

Is there a reason why you run a function in the config just to set a timestamp that is being passed as an argument to a python script?

Why not set the timestamp in the python script instead?

The timestamp is a nf-core standard. The timestamp is added into the filename of the nextflow run information html files. So you can't set it later.

Copy link
Contributor

@samuell samuell left a comment

Choose a reason for hiding this comment

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

Comments on the date matching function + minor comments.

Copy link
Contributor

@samuell samuell left a comment

Choose a reason for hiding this comment

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

Looks good, although as commented, I would rename the date_regex to avoid thinking it contains the regex pattern itself...

…-Bioinformatics-Lund/gms_16S into master-html-creation-with-timestamps
@ryanjameskennedy ryanjameskennedy force-pushed the master-html-creation-with-timestamps branch from 389133c to 61d4699 Compare February 18, 2025 15:35
@ryanjameskennedy ryanjameskennedy merged commit df9655d into genomic-medicine-sweden:dev Feb 18, 2025
2 checks passed
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.

Create a master template that points to all html filepaths
4 participants