Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 20241203 #391

Merged
merged 73 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
5136eb8
moved files to local and updated
erinyoung Dec 4, 2024
c3fb162
renamed files
erinyoung Dec 4, 2024
f3dca10
renamed directory
erinyoung Dec 4, 2024
9e00f01
adjusted for compatibility
erinyoung Dec 4, 2024
4e2d31b
removed most test
erinyoung Dec 4, 2024
a5277fe
separated workflow to new file
erinyoung Dec 4, 2024
303f151
added modules
Dec 5, 2024
701b9f1
added nextclade_dataset
Dec 5, 2024
d88b64f
added aci options
Dec 5, 2024
f51b97a
renamed ARTIC_FILTERING to ARTIC_FILTER
Dec 5, 2024
9d863b9
used meta
Dec 5, 2024
c5132ec
fixed ppath
Dec 5, 2024
54d48c0
used meta
Dec 5, 2024
7746906
used meta
Dec 5, 2024
6655b5c
used meta
Dec 5, 2024
5e743a7
testing genome download and msa
Dec 5, 2024
c4e6017
added
Dec 5, 2024
30faaf8
adds latest
Dec 5, 2024
f837290
for donwloading genomes
Dec 5, 2024
d10a4ca
fixed typo
Dec 5, 2024
3c04df2
renamed files
Dec 5, 2024
f7ba7e8
used meta
Dec 5, 2024
85175c9
changed from cecret to CONSENSUS
Dec 5, 2024
f1e4363
script filename
Dec 5, 2024
1e2ccb6
script filename
Dec 5, 2024
b849148
removed extra return
Dec 5, 2024
b90f578
added script name
Dec 5, 2024
085c715
renamed to NEXTCLADE DATASET
Dec 5, 2024
e9161ae
added params to config file
Dec 5, 2024
1fb6085
nf-core tools fixes
Dec 5, 2024
4fe75ce
added maxcpus and medcpus warning
Dec 5, 2024
d006294
fixed lowercase typos
Dec 5, 2024
363eb13
changed process names
Dec 5, 2024
b63b57f
changed process names
Dec 5, 2024
1f803dc
added meta for downloaded fastq files
Dec 5, 2024
37d0ea9
named shell to script
Dec 5, 2024
38be64d
added
Dec 5, 2024
f6a09ca
spacing changes
Dec 5, 2024
c1d986e
pango aliasor
Dec 5, 2024
84694f6
added channel
Dec 5, 2024
bc6ecb6
changed name
Dec 5, 2024
c32893b
removed unused lines
Dec 5, 2024
84a0ac3
added
Dec 5, 2024
5ed1fc5
added
Dec 5, 2024
e09d68d
fixed space
Dec 5, 2024
76dfada
added defaults and linted
Dec 5, 2024
e79c681
passed linting
Dec 5, 2024
a0480a0
added options
Dec 5, 2024
22308a5
adjusted quotations
Dec 5, 2024
c7b2a49
remove config file
Dec 5, 2024
b5b37ad
changed collapse to aliasor
Dec 5, 2024
04f4bd4
removed params.config_file
Dec 5, 2024
5c3e115
tied pango aliasor to pangolin
Dec 5, 2024
6745531
removed maxcpus
Dec 6, 2024
fe037a4
fixed fasta prep typo
Dec 6, 2024
89adfd1
removed macpus
Dec 6, 2024
7f33262
named process
Dec 6, 2024
5f812b7
removed quotations around input
erinyoung Dec 6, 2024
29959fe
fixed fastas input channel
erinyoung Dec 6, 2024
8ea0ea5
adjusted cpus
erinyoung Dec 6, 2024
82a2948
fixed elements
erinyoung Dec 6, 2024
2b0aeca
updated samtools qc filenames
erinyoung Dec 6, 2024
ecf79a7
fixed filtering command
erinyoung Dec 6, 2024
ece6166
removed if
erinyoung Dec 6, 2024
8d4740d
increased to low
erinyoung Dec 6, 2024
ae8171a
added stage
erinyoung Dec 6, 2024
92739ed
adjusted conditionals
erinyoung Dec 6, 2024
0a462d5
fixed multiqc channel
erinyoung Dec 6, 2024
730ebdb
updated result tree
erinyoung Dec 6, 2024
3cf3bff
consensus for sra
erinyoung Dec 6, 2024
275c79a
removed vadr
erinyoung Dec 9, 2024
aa75cb9
ignore samtools ampliconstats error
erinyoung Dec 9, 2024
1b4796e
added wildcard to path name
erinyoung Dec 9, 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
8 changes: 4 additions & 4 deletions .dockstore.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: "v.3.7.20230502"
workflows:
- name: Cecret
subclass: NFL
publish: True
primaryDescriptorPath: ./nextflow.config
- name: Cecret
subclass: NFL
publish: True
primaryDescriptorPath: ./nextflow.config
6 changes: 3 additions & 3 deletions .github/workflows/check_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Check versions
on:
workflow_dispatch:
schedule:
- cron: '30 4 * * TUE'
- cron: "30 4 * * TUE"

jobs:
check:
Expand All @@ -16,7 +16,7 @@ jobs:

- name: Checkout LFS objects
run: git lfs checkout

- name: versions
run: |
issue_text="Needing updates: "
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
echo $issue_text
cat versions.txt
echo 'ISSUE_TEXT='$issue_text >> $GITHUB_ENV

- name: Create Issue
run: |
gh issue create --title "Version check" --body "$ISSUE_TEXT" --repo $GITHUB_REPOSITORY
Expand Down
153 changes: 24 additions & 129 deletions .github/workflows/github_actions.config
Original file line number Diff line number Diff line change
@@ -1,134 +1,29 @@
process {
errorStrategy = { task.attempt < 2 ? 'retry' : 'terminate'}
withName:aci{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:artic{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:artic_read_filtering{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:bbnorm{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:bcftools_variants{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:bwa{
publishDir = [ path: "cecret", mode: 'link', pattern: 'logs/*/*log' ]
}
withName:download{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:fasta_prep{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:summary{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:unzip{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:fastp{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:fastqc{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:freyja_variants{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:freyja_demix{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:freyja_aggregate{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:heatcluster{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:igv_reports{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:iqtree2{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:ivar_consensus{
memory = '4 GB'
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:ivar_variants{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:ivar_trim{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:kraken2{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:mafft{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:minimap2{
publishDir = [ path: "cecret", mode: 'link', pattern: 'logs/*/*log' ]
}
withName:multiqc_combine{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:nextclade_dataset{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:nextclade{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:pango_collapse{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:pangolin{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:phytreeviz{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:samtools_stats{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:samtools_coverage{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:samtools_flagstat{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:samtools_depth{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:samtools_ampliconstats{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:samtools_plot_ampliconstats{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:samtools_sort{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:samtools_filter{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:samtools_ampliconclip{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:samtools_markdup{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:seqyclean{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:snpdists{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
}
withName:vadr{
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
publishDir = [ path: "cecret", mode: 'link', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }]
withLabel:process_single {
cpus = { 1 }
memory = { 6.GB }
time = { 4.h }
}
withLabel:process_low {
cpus = { 2 }
memory = { 12.GB }
time = { 4.h }
}
withLabel:process_medium {
cpus = { 2 }
memory = { 12.GB }
time = { 4.h }
}
withLabel:process_high {
cpus = { 2 }
memory = { 12.GB }
time = { 4.h }
}

withName: "IVAR.*" {
memory = '4 GB'
}
}

6 changes: 6 additions & 0 deletions .github/workflows/sample_sheet.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sample,fastq_1,fastq_2
paired_test,reads/SRR13957123_1.fastq.gz,reads/SRR13957123_2.fastq.gz
single_test,reads/SRR25097869.fastq.gz,single
wastewater_test,reads/SRR31220305_1.fastq.gz,reads/SRR31220305_2.fastq.gz
fasta_test,fastas/SRR13957123DB.fa,fasta
nanopore_test,nanopore/SRR31458670_1.fastq.gz,ont
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on: [pull_request, workflow_dispatch]
run-name: Download fastq and fasta and run

jobs:

test:
runs-on: ubuntu-20.04
steps:
Expand All @@ -16,31 +15,31 @@ jobs:

- name: Checkout LFS objects
run: git lfs checkout

- name: Install Nextflow
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/

- name: Run Cecret
run: |
docker --version

mkdir reads
wget -q ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR139/023/SRR13957123/SRR13957123_1.fastq.gz
wget -q ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR139/023/SRR13957123/SRR13957123_2.fastq.gz
mv *fastq.gz reads/.

mkdir -p fastas
wget -q https://raw.githubusercontent.com/StaPH-B/docker-builds/master/tests/SARS-CoV-2/SRR13957123.consensus.fa
mv SRR13957123.consensus.fa SRR13957123DB.fa
mv *fa fastas/.
nextflow run . -profile docker -c .github/workflows/github_actions.config --primer_set ncov_V3 --maxcpus 2 --medcpus 2 --cleaner 'fastp' --aligner 'minimap2' --mpileup_depth 200

nextflow run . -profile docker -c .github/workflows/github_actions.config --primer_set ncov_V3 --cleaner 'fastp' --aligner 'minimap2' --mpileup_depth 200 --fastas fastas --reads reads

ls cecret*

cat cecret*/cecret_results.txt

- name: Clean
run: rm -rf work .nextflow*
run: rm -rf work .nextflow*
21 changes: 10 additions & 11 deletions .github/workflows/test_kraken2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on: [pull_request, workflow_dispatch]
run-name: Test profile

jobs:

test:
runs-on: ubuntu-20.04
steps:
Expand All @@ -16,25 +15,25 @@ jobs:

- name: Checkout LFS objects
run: git lfs checkout

- name: Install Nextflow
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/

- name: Download Kraken2 Database
run: |
mkdir kraken2_db
cd kraken2_db
wget https://genome-idx.s3.amazonaws.com/kraken/k2_viral_20240112.tar.gz
tar -zxvf k2_viral_20240112.tar.gz
cd ../
mkdir kraken2_db
cd kraken2_db
wget https://genome-idx.s3.amazonaws.com/kraken/k2_viral_20240112.tar.gz
tar -zxvf k2_viral_20240112.tar.gz
cd ../

- name: Run Cecret
run: |
nextflow run . -profile docker,test \
-c .github/workflows/github_actions.config \
--maxcpus 2 --medcpus 2 --cleaner 'fastp' --aligner 'minimap2' --mpileup_depth 200 --vadr false \
--cleaner 'fastp' --aligner 'minimap2' --mpileup_depth 200 --vadr false \
--kraken2_db kraken2_db --kraken2

ls cecret*
Expand All @@ -43,7 +42,7 @@ jobs:

- name: Kraken2 results
run: |
wc -l cecret/kraken2/*_kraken2_report.txt
wc -l cecret*/kraken2/*_kraken2_report.txt

- name: Clean
run: rm -rf work .nextflow*
run: rm -rf work .nextflow*
7 changes: 3 additions & 4 deletions .github/workflows/test_mpx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ on: [pull_request, workflow_dispatch]
run-name: MPX

jobs:

test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@master

- name: Install Nextflow
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/

- name: Download reads
run: |
mkdir reads
Expand All @@ -27,7 +26,7 @@ jobs:

- name: Run Cecret
run: |
nextflow run . -profile docker,mpx -c .github/workflows/github_actions.config --maxcpus 2 --medcpus 2
nextflow run . -profile docker,mpx -c .github/workflows/github_actions.config --single_reads reads

ls cecret*

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test_mpx_idt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ on: [pull_request, workflow_dispatch]
run-name: MPX with IDT Primers

jobs:

mpx_idt:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@master

- name: Install Nextflow
run: |
wget -qO- get.nextflow.io | bash
Expand All @@ -27,7 +26,7 @@ jobs:

- name: Run Cecret
run: |
nextflow run . -profile docker,mpx_idt -c .github/workflows/github_actions.config --maxcpus 2 --medcpus 2
nextflow run . -profile docker,mpx_idt -c .github/workflows/github_actions.config --reads reads

ls cecret*

Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test_mpx_primalseq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ on: [pull_request, workflow_dispatch]
run-name: mpx_primalseq

jobs:

test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@master

- name: Install Nextflow
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/

- name: Download reads
run: |
mkdir reads
Expand All @@ -27,7 +26,7 @@ jobs:

- name: Run Cecret
run: |
nextflow run . -profile docker,mpx_primalseq -c .github/workflows/github_actions.config --maxcpus 2 --medcpus 2
nextflow run . -profile docker,mpx_primalseq -c .github/workflows/github_actions.config --reads reads

ls cecret*

Expand Down
Loading