Skip to content

Commit

Permalink
fix readme and make release.yml pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
gartician committed Mar 29, 2022
1 parent a120c20 commit 39bf8f5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 44 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout # ----------------------------------------------------------------
uses: actions/checkout@v1
- name: Set up Go 1.15
- name: Set up Go 1.15 # ----------------------------------------------------------
uses: actions/setup-go@v1
with:
go-version: 1.15.11
- name: Build with xgo
- name: Build with xgo # ----------------------------------------------------------
uses: crazy-max/ghaction-xgo@v1
with:
xgo_version: latest
Expand All @@ -26,7 +26,7 @@ jobs:
v: true
x: false
ldflags: -s -w
- name: Create Release
- name: Create Release # ----------------------------------------------------------
uses: actions/[email protected]
id: create_release
env:
Expand All @@ -36,14 +36,14 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Assets
- name: Upload Release Assets # ---------------------------------------------------
uses: glentiki/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASE_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
assets_path: ./build
- name: Publish conda
- name: Publish conda # -----------------------------------------------------------
uses: maxibor/[email protected]
with:
subDir: 'conda'
Expand Down
62 changes: 24 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,26 @@

# GoPeaks

GoPeaks is a peak caller designed for CUT&TAG/CUT&RUN sequencing data. GoPeaks by default works best with narrow peaks such as H3K4me3 and transcription factors. GoPeaks can be used with the "--broad" flag to call broad peaks like H3K27Ac/H3K4me1. We encourage users to explore the parameters of GoPeaks to analyze their data.
GoPeaks is a peak caller designed for CUT&TAG/CUT&RUN sequencing data. GoPeaks by default works best with narrow peaks such as H3K4me3 and transcription factors. However, broad epigenetic marks like H3K27Ac/H3K4me1 require different the step, slide, and minwidth parameters. We encourage users to explore the parameters of GoPeaks to analyze their data.

# Installation

## Conda
## Configure

Download the latest release using conda:

```
$ conda install -c jakevc gopeaks
conda install -c jakevc gopeaks
```

## GitHub

Download the GoPeaks compiled binaries directly from GitHub:
Or download binary asset directly from github:

```bash
$ wget -O GoPeaks https://github.com/maxsonBraunLab/gopeaks/releases/download/1.0.0/gopeaks-linux-amd64
$ chmod +x GoPeaks
```
wget -O gopeaks https://github.com/maxsonBraunLab/gopeaks/releases/download/v1.0.0/gopeaks-linux-amd64
chmod +x gopeaks
```

# Example Usage
## Example Usage

```bash
$ ./GoPeaks -h
```
usage: GoPeaks [-h|--help] [-b|--bam "<value>"] [-c|--control "<value>"]
[-s|--chromsize "<value>"] [-m|--mdist <integer>] [-r|--minreads
<integer>] [-p|--pval <float>] [-t|--step <integer>] [-l|--slide
Expand Down Expand Up @@ -62,19 +57,13 @@ Arguments:
--broad Run GoPeaks on broad marks (--step 5000 & --slide 1000)
```

## Call narrow peaks
## Call peaks on a bam file using an IgG control

```bash
$ ./GoPeaks -b <sample>.bam -c <control>.bam -o data/gopeaks/<sample>
```
## Call broad peaks
```bash
$ ./GoPeaks -b <sample>.bam -c <control>.bam -o data/gopeaks/<sample> --broad --mdist 3000
$ ./gopeaks -b <sample>.bam -c <control>.bam -o data/gopeaks/<sample>
```

# Output
## Output

Two output files are generated each with the output prefix ${prefix}, set to "sample" by default.

Expand All @@ -83,30 +72,27 @@ Two output files are generated each with the output prefix ${prefix}, set to "sa

```
head sample_peaks.bed
chr1 9950 10550
chr1 21250 22650
chr1 96050 97050
chr1 9950 10550
chr1 21250 22650
chr1 96050 97050
```

```bash
$ cat sample_gopeaks.json
```
cat sample_gopeaks.json
{
"gopeaks_version": "1.0.0",
"date": "2021-08-06 11:4:58 AM",
"elapsed": "1m23.43085221s",
"prefix": "sample",
"command": "./gopeaks -b test/K562_1_H3K4me3.ban.sorted.markd.bam -c test/K562_1_IgG.ban.sorted.markd.bam -o K562_1_H3K4me3",
"peak_counts": 10329
"gopeaks_version": "1.0.0",
"date": "2021-08-06 11:4:58 AM",
"elapsed": "1m23.43085221s",
"prefix": "sample",
"peak_counts": 4765
}
```

# Recommended parameters
## Recommended parameters

| Sequencing Modality | Recommended Parameters |
| ---------------------------------------- | ---------------------------- |
| CUT&TAG or CUT&RUN narrow peaks | Default parameters |
| CUT&TAG or CUT&RUN transcription factors | Default parameters |
| ATAC-Seq | Default parameters |
| ChIP-Seq narrow peaks | Default parameters |
| CUT&TAG or CUT&RUN broad peaks | `--broad` and `--mdist 3000` |
| ChIP-Seq broad peaks | `--broad` and `--mdist 3000` |
| ATAC-Seq | Default parameters |

0 comments on commit 39bf8f5

Please sign in to comment.