Skip to content

Commit 9ae1bd7

Browse files
authored
Merge pull request #34 from PacificBiosciences/feature/cell_deconv
updates for cell deconv
2 parents a1eec10 + 616e48c commit 9ae1bd7

File tree

11 files changed

+76109
-134
lines changed

11 files changed

+76109
-134
lines changed

.github/workflows/README.md

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/simple-release.yml

Lines changed: 4 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -12,71 +12,9 @@ on:
1212
type: string
1313

1414
jobs:
15-
update-release:
16-
runs-on: ubuntu-latest
15+
call-external:
16+
uses: holtjma/shared_github_workflows/.github/workflows/update-release.yml@286c4ec0efbe7aac72a7149cfbd2a00f57457881
1717
permissions:
1818
contents: write
19-
steps:
20-
- name: Checkout code
21-
uses: actions/checkout@v4
22-
23-
- name: Extract version from tag
24-
id: extract_version
25-
run: |
26-
# Handle both automatic tag pushes and manual workflow dispatch
27-
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
28-
# Manual trigger - use input parameter
29-
TAG="${{ github.event.inputs.tag }}"
30-
VERSION=${TAG#v}
31-
else
32-
# Automatic trigger - extract from git tag
33-
TAG=${GITHUB_REF#refs/tags/}
34-
VERSION=${TAG#v}
35-
fi
36-
echo "version=$VERSION" >> $GITHUB_OUTPUT
37-
echo "tag=$TAG" >> $GITHUB_OUTPUT
38-
39-
- name: Extract changelog section
40-
id: changelog
41-
run: |
42-
# Find the changelog section for this version
43-
if grep -q "^# v${{ steps.extract_version.outputs.version }}$" CHANGELOG.md; then
44-
# Extract from the version header to the next version header or end of file
45-
awk '
46-
/^# v${{ steps.extract_version.outputs.version }}$/ {
47-
in_section = 1;
48-
next
49-
}
50-
/^# v[0-9]+\.[0-9]+\.[0-9]+$/ && in_section {
51-
exit
52-
}
53-
in_section {
54-
print
55-
}
56-
' CHANGELOG.md > release_body.txt
57-
58-
echo "" >> release_body.txt
59-
echo "---" >> release_body.txt
60-
echo "" >> release_body.txt
61-
echo "This release was automatically updated from tag ${{ steps.extract_version.outputs.tag }}." >> release_body.txt
62-
else
63-
echo "No changelog found for version ${{ steps.extract_version.outputs.version }}" > release_body.txt
64-
fi
65-
66-
- name: Get Release ID
67-
id: get_release
68-
run: |
69-
# Get the release ID for this tag
70-
RELEASE_ID=$(gh api repos/${{ github.repository }}/releases/tags/${{ steps.extract_version.outputs.tag }} --jq '.id')
71-
echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT
72-
env:
73-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74-
75-
- name: Update Release
76-
run: |
77-
# Update the existing release with new changelog content
78-
gh api repos/${{ github.repository }}/releases/${{ steps.get_release.outputs.release_id }} \
79-
--method PATCH \
80-
--field body=@release_body.txt
81-
env:
82-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
secrets:
20+
token: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v0.16.0
2+
## Changes
3+
- Added new `methbat deconvolve` sub-command for cell type deconvolution from bulk methylation data. See [deconvolution guide](./docs/deconvolution_guide.md) for details on usage.
4+
- Added two example atlas files derived from public atlases: [data/cell_atlas](./data/cell_atlas/)
5+
16
# v0.15.0
27
## Changes
38
- **Breaking**: Added five new columns to the output of `profile`:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Key features include:
66
* Creation of cohort / background profiles from a collection of methylation profiles
77
* Analysis of cohort profiles comparing sub-groups (e.g., case v. control, male v. female)
88
* Segmentation of the CpGs in a dataset into Methylated, Unmethylated, or ASM regions
9+
* Cell type deconvolution from bulk methylation data using reference atlases
910

1011
Authors: [Matt Holt](https://github.com/holtjma), [Chris Saunders](https://github.com/ctsa)
1112

data/cell_atlas/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Cell atlases
2+
This folder contains publicly available cell atlases converted to the MethBat format.
3+
While limited testing has been done on each atlas listed here, we recommend additional verification of performance prior to broad implementation.
4+
If you would like to generate your own atlas, refer to our documentation for the [expected MethBat atlas format](../../docs/deconvolution_guide.md#atlas-format).
5+
6+
List of atlas files included:
7+
8+
* [Nanomix atlases](./nanomix) - Atlases released as part of [nanomix](https://github.com/Jonbroad15/nanomix/tree/main/atlases), which were released under the MIT license. The nanomix GitHub does not specify the reference build for these atlases, but it is presumed hg38 from internal testing.
9+
10+
If a public atlas you would like to use is missing, please file a GitHub ticket to investigate inclusion in this list.

0 commit comments

Comments
 (0)