Skip to content

Commit

Permalink
FIX: fix AsaruSim version
Browse files Browse the repository at this point in the history
  • Loading branch information
alihamraoui committed Sep 18, 2024
1 parent 22c30c5 commit 0579a10
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions bin/AsaruSim.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import argparse
import version
from badread_caller import badread_caller, setup_badread_command
from template_maker import template_maker, setup_template_parameters
from PCR_amplificator import PCR_amplificator, setup_PCR_parameters

def setup_parent_parser():
parent_parser = argparse.ArgumentParser(add_help=False)
parent_parser.add_argument('--debug', action='store_true', help='Enable debug mode')
parent_parser.add_argument('--version', action='version', version=version.__version__)
return parent_parser


Expand Down
6 changes: 4 additions & 2 deletions bin/QC.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pandas as pd
import argparse

import version
from QC_tools import qc_generator
from QC_tools.figs import over_time_graph
from QC_tools.figs import ATGC_graph
Expand Down Expand Up @@ -138,7 +138,9 @@ def main():
args.conf_params,
args.work_params,
args.project,
args.env)
args.env,
version.__version__
)


if __name__ == "__main__":
Expand Down
8 changes: 4 additions & 4 deletions bin/QC_tools/reporte_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def read_logo(image_path):
encoded_string = base64.b64encode(image_file.read()).decode('utf-8')
return encoded_string

def reporter(stats_table, pie_fig, Q_over_time, atgc, gc, conf_params, work_params, project, versions):
def reporter(stats_table, pie_fig, Q_over_time, atgc, gc, conf_params, work_params, project, versions, asarusim_version):
work_params = string_to_dict(work_params)
conf_params = list_to_dict(conf_params)

Expand Down Expand Up @@ -71,7 +71,7 @@ def reporter(stats_table, pie_fig, Q_over_time, atgc, gc, conf_params, work_para
with doc:
with header():
with div():
h1('AsaruSim v0.1.0', cls='title')
h1('AsaruSim v' + asarusim_version, cls='title')
p(current_date, cls='date')
img_logo = read_logo('asarusim_v2.png')
img(src=f'data:image/png;base64,{img_logo}',height='60', alt='Logo', style="float: right;")
Expand Down Expand Up @@ -157,8 +157,8 @@ def reporter(stats_table, pie_fig, Q_over_time, atgc, gc, conf_params, work_para

with footer():
with div(style='font-size: 12px; padding: 10px 20px;;'):
app_url="https://alihamraoui.github.io/AsaruSim/introduction/"
p(raw(f'Generated by <a href="{app_url}">AsaruSim</a> (version 0.2.0)'))
app_url="https://genomiqueens.github.io/AsaruSim/introduction/"
p(raw(f'Generated by <a href="{app_url}">AsaruSim</a> (v{asarusim_version})'))


with doc.body:
Expand Down
1 change: 1 addition & 0 deletions bin/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.2.1'

0 comments on commit 0579a10

Please sign in to comment.