Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
153c19b
fixes for checkpoints in the cloud
cademirch May 9, 2023
5d9fff5
make trackhubs prettier
cademirch May 9, 2023
4e0d845
Merge pull request #105 from harvardinformatics/fix_cloud_checkpoints
tsackton May 10, 2023
a0baaec
bcftools v1.10
tsackton May 30, 2023
a6c7e78
Merge pull request #108 from harvardinformatics/bugfix
cademirch Jun 6, 2023
777332b
fix typo
erikenbody Mar 22, 2023
9376375
Fix ncbi-ref error in write_samples.py
tsackton Mar 20, 2023
b170397
update env spec
cademirch Apr 14, 2023
1ed52dd
fix sort issue with chrom sizes
cademirch Apr 18, 2023
e8ce330
remove organism from write_samples
cademirch Jun 19, 2023
bcef46d
fix logo and emoji
cademirch Jun 21, 2023
ce8b77f
fix emoji
cademirch Jun 21, 2023
d432b69
Merge branch 'main' into trackhubs
cademirch Jun 22, 2023
51941c2
Merge pull request #111 from harvardinformatics/trackhubs
tsackton Jun 22, 2023
e587af8
Merge pull request #112 from harvardinformatics/main
cademirch Jul 11, 2023
7abe165
fix trackhub details
cademirch Jul 11, 2023
5c02b6d
reference html file in script
cademirch Jul 11, 2023
3d39cf5
fix copying html file
cademirch Jul 11, 2023
43b8b3b
put html in output
cademirch Jul 11, 2023
2d608c4
fix output
cademirch Jul 11, 2023
f5070ef
fix hub script
cademirch Jul 11, 2023
cd6026d
fix html
cademirch Jul 11, 2023
974caf8
Merge pull request #113 from harvardinformatics/trackhubs
erikenbody Jul 15, 2023
d85ce92
Update resources.yaml
tsackton Aug 7, 2023
4846330
add resource spec for intervals #114
cademirch Aug 7, 2023
2a5992c
Merge pull request #115 from harvardinformatics/main
cademirch Aug 7, 2023
caf1303
Fix mosdepth to 0.3.3
aewebb80 Aug 8, 2023
f536114
Merge pull request #116 from harvardinformatics/bugfix
tsackton Aug 8, 2023
a4849fa
Merge pull request #117 from aewebb80/main
tsackton Aug 8, 2023
c9f87ac
Update path, enable conda
aewebb80 Aug 9, 2023
af8afd3
Merge pull request #118 from aewebb80/main
cademirch Aug 9, 2023
d00634d
update read group naming in common.smk
erikenbody Sep 20, 2023
5c42f3f
Merge pull request #124 from harvardinformatics/erikenbody-regroups
cademirch Sep 21, 2023
0b0206b
Update index.md
erikenbody Sep 26, 2023
d1f9eb8
Update setup.md
erikenbody Sep 26, 2023
ce6e0a6
Merge pull request #127 from harvardinformatics/erikenbody-patch-4
cademirch Sep 27, 2023
1b42841
Merge pull request #126 from harvardinformatics/erikenbody-patch-5
cademirch Sep 27, 2023
bec679f
Remove chromosomes from chr_ex in QC
aewebb80 Sep 27, 2023
993664a
Add scaffolds_to_exclude to config for QC tests
aewebb80 Sep 27, 2023
753025d
Merge pull request #128 from aewebb80/main
tsackton Sep 29, 2023
c195291
Update README.md
tsackton Sep 29, 2023
88b937f
Merge pull request #129 from harvardinformatics/update-readme
cademirch Oct 2, 2023
8843afb
Update common.smk
erikenbody Oct 3, 2023
95eeb86
Update cov_filter.yml
tsackton Oct 6, 2023
8156efe
Merge pull request #131 from harvardinformatics/pyd4-fix
cademirch Oct 6, 2023
adfcbe7
Merge pull request #130 from harvardinformatics/erikenbody-patch-4
cademirch Oct 6, 2023
d230125
add ploidy options
cademirch Oct 19, 2023
62cb27a
add some doc stuff
cademirch Oct 20, 2023
53109f8
Merge pull request #135 from harvardinformatics/update_docs
cademirch Oct 20, 2023
d5a37f5
Merge pull request #134 from harvardinformatics/ploidy
cademirch Oct 20, 2023
930e0af
update docs
cademirch Nov 2, 2023
6719c85
dont run ci tests on pr for docs/md files
cademirch Nov 2, 2023
1b81d94
Merge pull request #136 from harvardinformatics/docs
tsackton Nov 3, 2023
e544c3a
add info about multiple seq runs
cademirch Nov 3, 2023
3c94532
add sentence
cademirch Nov 3, 2023
a424f0b
update wording
cademirch Nov 3, 2023
6c8951b
Merge pull request #138 from harvardinformatics/docs
cademirch Nov 3, 2023
aed98ce
Update write_samples.py
tsackton Nov 28, 2023
1d0525e
Merge pull request #143 from harvardinformatics/tsackton-patch-1
cademirch Dec 12, 2023
96b0b6b
add support for mixed local and sra fastqs
cademirch Dec 15, 2023
a9d10ce
handle sra only
cademirch Dec 15, 2023
0b48783
formatting
cademirch Dec 19, 2023
275de90
Merge pull request #146 from harvardinformatics/local_and_sra
cademirch Dec 29, 2023
80e2105
update citation
cademirch Dec 29, 2023
1f3cb30
Merge pull request #150 from harvardinformatics/cademirch-patch-1
tsackton Dec 30, 2023
686be19
Fix typo in mk module
tsackton Jan 24, 2024
042e64d
Update setup.md
cademirch Feb 1, 2024
884d978
Merge pull request #152 from harvardinformatics/tsackton-patch-2
tsackton Feb 1, 2024
e62268b
pin python versions
cademirch Feb 1, 2024
b355b09
try using my fork of snakemake actions
cademirch Feb 1, 2024
fae8790
remove version from gh action
cademirch Feb 1, 2024
e8055f2
v1 action
cademirch Feb 1, 2024
bae8ec7
Merge pull request #155 from harvardinformatics/cademirch-patch-1
tsackton Feb 6, 2024
fa49e7c
Update cov_filter.smk
tsackton Feb 14, 2024
8a671fa
add resources to qc rules
tsackton Feb 14, 2024
9c00331
Add resources to postprocess module
tsackton Feb 14, 2024
5b479be
Merge pull request #157 from harvardinformatics/tsackton-patch-2
cademirch Feb 15, 2024
b3c2025
remove --overwrite from tar. incompatible with bsdtar, is default for…
cademirch Mar 7, 2024
0464660
Update setup.md
cademirch Mar 7, 2024
c899806
Update modules.md
cademirch Mar 7, 2024
c9971b8
Merge pull request #164 from harvardinformatics/cademirch-patch-1
tsackton Mar 7, 2024
f0fe796
Merge pull request #162 from harvardinformatics/osx-fixes
tsackton Mar 7, 2024
39a899f
change file.rename to file.copy, then file.remove to deal with snparc…
cademirch Mar 8, 2024
a80e60a
Merge pull request #167 from harvardinformatics/issue-166
tsackton Mar 11, 2024
dd60dbb
improve admixture run contig names
erikenbody Mar 11, 2024
74a649a
remove comments
erikenbody Mar 11, 2024
8e76407
fix fai typo
erikenbody Mar 11, 2024
fca158d
trying to fix fai file path again
erikenbody Mar 11, 2024
ed43114
Merge pull request #168 from harvardinformatics/admixture_contig_names
tsackton Mar 12, 2024
a8bf7e8
bump min snakemake version, update config for remote reads
cademirch Mar 26, 2024
c38153e
change default_remote_prefix to new api
cademirch Mar 26, 2024
be8b5b5
missed a default prefix
cademirch Mar 26, 2024
fba5e97
add copy_reference rule
cademirch Mar 27, 2024
fba55fe
add gz local genome test
cademirch Mar 27, 2024
5851c77
update ecoli test case
cademirch Mar 27, 2024
d6631a4
update reference stuff, replace default_remote_prefix
cademirch Mar 27, 2024
af48cee
Merge pull request #169 from harvardinformatics/main
cademirch Mar 27, 2024
e3b081c
revert gh actions to use snakemake's action
cademirch Mar 27, 2024
dc52a2f
update ecoli csv
cademirch Mar 27, 2024
c47cf80
add snparcher_utils to deal with samplesheet/config parsing for main …
cademirch Mar 28, 2024
ebc8992
use snparcher utils, clean up some imports
cademirch Mar 28, 2024
bb66554
move functions to init
cademirch Mar 28, 2024
3c117ed
use snparcher_utils
cademirch Mar 28, 2024
f4bc650
clean up imports add snparcherutils, add logs
cademirch Mar 28, 2024
84516b6
update postprocess and trackhub with utils
cademirch Mar 28, 2024
1855bef
update mk with utils
cademirch Mar 28, 2024
bfd3c49
update write samples and move it
cademirch Mar 28, 2024
4bcf913
update git stuff
cademirch Mar 28, 2024
36335d9
fix gh action syntax
cademirch Mar 28, 2024
ecb0fce
add config genome test case
cademirch Mar 28, 2024
58addff
add refGenome and refPath to main config
cademirch Mar 28, 2024
16b4548
clean up unused files
cademirch Mar 28, 2024
94652dd
moving resources to profile
cademirch Mar 29, 2024
9fb2315
moving resources to profile
cademirch Mar 29, 2024
05c0beb
fix gh action workflow
cademirch Mar 29, 2024
b76aa92
fix gh action
cademirch Mar 29, 2024
f8c3b2b
add slurm profile
cademirch Mar 29, 2024
9218196
update profiles
cademirch Mar 30, 2024
5973c6f
update docs
cademirch Apr 2, 2024
d27693d
update profiles
cademirch Apr 2, 2024
0a41913
initial example commit
cademirch Apr 2, 2024
956bad2
add example
cademirch Apr 2, 2024
5adbcd9
revert to old download ref behavior because of issue w/ ruleorder and…
cademirch Apr 3, 2024
9a37f6d
Update main.yaml
cademirch Apr 3, 2024
c7bded4
try again
cademirch Apr 3, 2024
44ae6b2
switched to stable snakemake in gh action docker
cademirch Apr 3, 2024
86ba347
go back to snakemake gh action, use stagein to set python version
cademirch Apr 3, 2024
0c99d0c
update gh action version
cademirch Apr 3, 2024
292795e
get rid of stagein
cademirch Apr 3, 2024
513b3d0
try pinning versions in cov filter
cademirch Apr 4, 2024
c00f79f
trying to get cov filter to build
cademirch Apr 4, 2024
d506e27
add functions to create/modify curl rc, then undo at end of workflow
cademirch Apr 5, 2024
8fc4497
make branch for snakemake7
cademirch Apr 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
name: CI
on:
pull_request:
paths-ignore:
- "docs/**"
- "**.md"
branches:
- main


jobs:
Testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test whole workflow
uses: snakemake/snakemake-github-action@v1.24.0
uses: snakemake/snakemake-github-action@v1.25.1
with:
directory: .test/ci/
snakefile: workflow/Snakefile
args: "--use-conda --show-failed-logs -j 1 --conda-cleanup-pkgs cache --conda-frontend mamba"
stagein: "conda config --set channel_priority strict"
22 changes: 16 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,32 @@ on:

jobs:

Testing:
Testing_local-fastq:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test workflow (Local Fastq > VCF)
uses: snakemake/snakemake-github-action@v1.24.0
uses: cademirch/snakemake-github-action@v1
with:
directory: .test/ecoli/
snakefile: workflow/Snakefile
args: "--use-conda --show-failed-logs -j 10 --conda-cleanup-pkgs cache --conda-frontend mamba"
Testing_local-fastq_and_sra:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test workflow (Local Fastq > VCF)
uses: cademirch/snakemake-github-action@v1
with:
directory: .test/ecoli/
snakefile: workflow/Snakefile
args: "--config samples='config/local_and_sra.csv' --use-conda --show-failed-logs -j 10 --conda-cleanup-pkgs cache --conda-frontend mamba"
Testing_QC:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test workflow (QC rules)
uses: snakemake/snakemake-github-action@v1.24.0
uses: cademirch/snakemake-github-action@v1
with:
snakefile: workflow/modules/qc/Snakefile
directory: .test/qc/
Expand All @@ -34,7 +44,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Test workflow (Postprocess)
uses: snakemake/snakemake-github-action@v1.24.0
uses: cademirch/snakemake-github-action@v1
with:
snakefile: workflow/modules/postprocess/Snakefile
directory: .test/postprocess/
Expand All @@ -44,8 +54,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Test workflow (Trackhubs)
uses: snakemake/snakemake-github-action@v1.24.0
uses: cademirch/snakemake-github-action@v1
with:
snakefile: workflow/modules/trackhub/Snakefile
directory: .test/trackhub/
args: "--use-conda --show-failed-logs -j 10 --conda-cleanup-pkgs cache --conda-frontend mamba"
args: "--use-conda --show-failed-logs -j 10 --conda-cleanup-pkgs cache --conda-frontend mamba"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ tmp/
.test/ci/results
.test/ci/benchmarks
.test/ci/logs
.vscode
.test/trackhub/*.sizes
.test/trackhub/out.log
15 changes: 15 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2

build:
os: "ubuntu-22.04"
tools:
python: "3.11"

# Build from the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# Explicitly set the version of Python and its requirements
python:
install:
- requirements: docs/requirements.txt
2 changes: 1 addition & 1 deletion .test/ci/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ trackhub_email: "hi@website.com"
minNmer: 500 # the minimum Nmer used to split up the genome; e.g. a value of 200 means only Nmers 200 or greater are used to define the boundaries of intervals. The minimum is 50.
num_gvcf_intervals: 50 # The maximum number of intervals to create for GVCF generation. Note: the actual number of intervals may be less than the specified value if the reference genome has very few gaps.
db_scatter_factor: 0.15 # Scatter factor for calculating number of intervals to create for genomics db generation. (scatter_factor * num_samples * num_gvcf_intervals) gives us number of db intervals to create. Reccomend <1

ploidy: 2 # Ploidy for HaplotypeCaller and Sentieon Haplotyper
## Coverage options ##
## default pipeline is optimized for low coverage data - if using high coverage data (> 10x), uncomment high coverage options and comment out low coverage options

Expand Down
5 changes: 4 additions & 1 deletion .test/ci/config/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ sentieon_combine_gvcf:
process_ref:
mem: 15000
# custom python algo to create intervals
create_intervals:
create_db_intervals:
mem: 5000

create_gvcf_intervals:
mem: 5000

## Callable sites workflow
Expand Down
7 changes: 5 additions & 2 deletions .test/ecoli/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ intervals: True #Set to True if you want to perform variant calling using interv
sentieon: False #set to True if you want to use sentieon, False if you want GATK
sentieon_lic: ".lic" #set to path of sentieon license
remote_reads: False # set if you want reads to be on google cloud storage remote
remote_reads_prefix: "" # set to google bucket name where reads live
remote_reads_prefix: ""
bigtmp: "" #Set to a path with lots of free space to use for commands that require large amounts of temp space; defaults to system tmpdir if empty
cov_filter: True #set to True if you want to include coverage thresholds in the callable sites bed file (default uses mappability only)
generate_trackhub: True #Set to true if you want to generate a Genome Browser Trackhub. Dependent on postprocessing module.
Expand All @@ -19,11 +19,14 @@ trackhub_email: "hi@website.com"
# Variables you *might* need to change
##############################

refGenome:
refPath:

# Interval approach options, only applicable if intervals is True
minNmer: 500 # the minimum Nmer used to split up the genome; e.g. a value of 200 means only Nmers 200 or greater are used to define the boundaries of intervals. The minimum is 50.
num_gvcf_intervals: 3 # The maximum number of intervals to create for GVCF generation. Note: the actual number of intervals may be less than the specified value if the reference genome has very few gaps.
db_scatter_factor: 0.15 # Scatter factor for calculating number of intervals to create for genomics db generation. (scatter_factor * num_samples * num_gvcf_intervals) gives us number of db intervals to create. Reccomend <1

ploidy: 1 # Ploidy for HaplotypeCaller and Sentieon Haplotyper
## Coverage options ##
## default pipeline is optimized for low coverage data - if using high coverage data (> 10x), uncomment high coverage options and comment out low coverage options

Expand Down
3 changes: 3 additions & 0 deletions .test/ecoli/config/ecoli_config_genome.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BioSample,LibraryName,Run,Organism,BioProject,fq1,fq2
SAMN12676327,EK7.12,SRR10058855,Escherichia coli,PRJNA563564,data/local_fastq/my_sample1_1.fastq.gz,data/local_fastq/my_sample1_2.fastq.gz
SAMN12676342,EK7.30,SRR10058838,Escherichia coli,PRJNA563564,data/local_fastq/my_sample2_1.fastq.gz,data/local_fastq/my_sample2_2.fastq.gz
2 changes: 1 addition & 1 deletion .test/ecoli/config/ecoli_samples.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
BioSample,LibraryName,refGenome,Run,Organism,BioProject,fq1,fq2,refPath
SAMN12676327,EK7.12,GCA_000008865.2,SRR10058855,Escherichia coli,PRJNA563564,data/local_fastq/my_sample1_1.fastq.gz,data/local_fastq/my_sample1_2.fastq.gz,data/local_genome/local_genome.fna
SAMN12676327,EK7.12,GCA_000008865.2,SRR10058855,Escherichia coli,PRJNA563564,data/local_fastq/my_sample1_1.fastq.gz,data/local_fastq/my_sample1_2.fastq.gz,data/local_genome/local_genome.fna.gz
SAMN12676342,EK7.30,GCA_003018455.1,SRR10058838,Escherichia coli,PRJNA563564,data/local_fastq/my_sample2_1.fastq.gz,data/local_fastq/my_sample2_2.fastq.gz
3 changes: 3 additions & 0 deletions .test/ecoli/config/local_and_sra.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BioSample,LibraryName,refGenome,Run,Organism,BioProject,fq1,fq2,refPath
SAMN12676327,EK7.12,GCA_000008865.2,SRR10058855,Escherichia coli,PRJNA563564,data/local_fastq/my_sample1_1.fastq.gz,data/local_fastq/my_sample1_2.fastq.gz,data/local_genome/local_genome.fna.gz
SAMN12676342,EK7.30,GCA_003018455.1,SRR10058838,Escherichia coli,PRJNA563564
7 changes: 5 additions & 2 deletions .test/ecoli/config/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ bedtools:
process_ref:
mem: 4000
# custom python algo to create intervals
create_intervals:
mem: 4000
create_db_intervals:
mem: 5000

create_gvcf_intervals:
mem: 5000

## Callable sites workflow

Expand Down
Loading