Skip to content

Commit

Permalink
Update reports (#52)
Browse files Browse the repository at this point in the history
* Update report changes

* Switch branch of integration test repo

* Remove extraneous `crispresso_data_path`

* Point integration tests back to master
  • Loading branch information
Colelyman authored and kclem committed Mar 28, 2024
1 parent 42e5959 commit e87d92e
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
mkdir ../CRISPResso2_copy
cp -r * ../CRISPResso2_copy
- name: Copy C2_tests repo
uses: actions/checkout@master
with:
Expand Down
24 changes: 21 additions & 3 deletions CRISPResso2/CRISPRessoReports/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,16 @@ Also, note that the default commit message may have a summary of all commits, pl

1. In the parent repo, switch to (or create) the branch on `CRISPRessoReports` that will have the changes you push.

If you are creating a new branch based off of `CRISPRessoReports` master, run this:
If you are creating a new branch based off of `CRISPRessoReports` master, run this to switch to the reports master branch:

``` shell
git checkout -b <feature-branch>-reports reports/master
git checkout reports/master
```

Then, run to actually create (and switch to) the branch that you will be working with:

``` shell
git checkout -b <feature-branch>-reports
```

Or if you would like to push to an existing branch on `CRISPRessoReports`, run this:
Expand All @@ -106,14 +112,26 @@ git merge --squash -Xsubtree="CRISPResso2/CRISPRessoReports" --no-commit --allow

*Note:* `<feature-branch>` is the branch of the parent repo that contains the changes inside the `CRISPRessoReports` sub-directory.

3. Push to `CRISPRessoReports`.

``` shell
git push
```

4. Switch back to your branch on `CRISPResso` or `C2Web`.

``` shell
git checkout <feature-branch>
```

### I am working on a feature that requires changing `CRISPRessoReports`, what do I do?

If a feature that you are working on requires changes to CRISPRessoReports, you will need to perform a few steps to get setup.

1. Create a feature branch in the parent repo, based on the parent repo master.

``` shell
git checkout -b <feature-branch> origin/master
git checkout -b <feature-branch>
```

2. Create a feature branch on `CRISPRessoReports`.
Expand Down
1 change: 0 additions & 1 deletion CRISPResso2/CRISPRessoReports/templates/batchReport.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
{% endblock %}

{% block content %}

<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
Expand Down
5 changes: 3 additions & 2 deletions CRISPResso2/CRISPRessoReports/templates/multiReport.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{% endblock %}

{% block content %}

<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">

Expand All @@ -61,7 +61,7 @@ <h5>{{report_name}}</h5>
<div class='card-body p-0'>
<div class="list-group list-group-flush" style='max-height:80vh;overflow-y:auto'>
{% for run_name in run_names %}
<a href="{{report_data['crispresso_data_path']}}{{sub_html_files[run_name]}}" class="list-group-item list-group-item-action">{{run_name}}</a>
<a href="{{sub_html_files[run_name]}}" class="list-group-item list-group-item-action">{{run_name}}</a>
{% endfor %}
</div>
</div>
Expand Down Expand Up @@ -162,6 +162,7 @@ <h5>Summary Plots</h5>
</div> {# column #} <!-- end column -->

<div class="col-sm-1"></div>
</div>
{% endblock %}

{% block foot %}
Expand Down
5 changes: 2 additions & 3 deletions CRISPResso2/CRISPRessoReports/templates/pooledReport.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
{% endblock %}

{% block content %}

<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
Expand All @@ -60,8 +59,8 @@ <h5>{{report_name}}</h5>
<div class='card-body p-0'>
<div class="list-group list-group-flush">
{% for region_name in run_names %}
<a href="{{sub_html_files[region_name]}}" class="list-group-item list-group-item-action">{{region_name}}</a>
{% endfor %}
<a href="{{sub_html_files[region_name]}}" class="list-group-item list-group-item-action">{{region_name}}</a>
{% endfor %}
</div>
</div>
</div>
Expand Down
5 changes: 2 additions & 3 deletions CRISPResso2/CRISPRessoReports/templates/wgsReport.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
{% endblock %}

{% block content %}

<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-10">
Expand All @@ -60,8 +59,8 @@ <h5>{{report_name}}</h5>
<div class="card-body p-0">
<div class="list-group list-group-flush">
{% for region_name in run_names %}
<a href="{{sub_html_files[region_name]}}" class="list-group-item list-group-item-action" id="{{region_name}}">{{region_name}}</a>
{% endfor %}
<a href="{{sub_html_files[region_name]}}" class="list-group-item list-group-item-action" id="{{region_name}}">{{region_name}}</a>
{% endfor %}
</div>
</div>
</div>
Expand Down

0 comments on commit e87d92e

Please sign in to comment.