-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from UPHL-BioNGS/dragonflye-update
Dragonflye update
- Loading branch information
Showing
25 changed files
with
299 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: 1.2 | ||
version: 1.1.20230425 | ||
workflows: | ||
- name: Donut_Falls | ||
subclass: NFL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Test Donut Falls dragonflye assembly | ||
|
||
on: [pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- 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 Donut Falls | ||
run: | | ||
docker --version | ||
wget ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR377/009/ERR3772599/ERR3772599_1.fastq.gz | ||
mv ERR3772599_1.fastq.gz reads/. | ||
nextflow run . -profile docker -c .github/workflows/github_actions.config --reads reads --assembler dragonflye | ||
tree donut_falls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,78 @@ | ||
# nextflow run /home/eriny/sandbox/Donut_Falls -profile singularity --reads /home/eriny/sandbox/test_files/donut/combined --illumina /home/eriny/sandbox/test_files/donut/illumina -with-tower -resume | ||
# nextflow run /home/eriny/sandbox/Donut_Falls -profile singularity --reads /home/eriny/sandbox/test_files/donut/combined -with-tower -resume | ||
# nextflow run /home/eriny/sandbox/Donut_Falls -profile singularity --sample_sheet /home/eriny/sandbox/test_files/donut/sample_sheet.csv -resume | ||
|
||
echo "$(date): testing only LR with flye" | ||
echo "$(date): testing only LR with flye" && \ | ||
nextflow run /home/eriny/sandbox/Donut_Falls \ | ||
-profile singularity \ | ||
--reads /home/eriny/sandbox/test_files/donut/combined \ | ||
--outdir only_nanopore \ | ||
--reads /home/eriny/sandbox/test_files/donut/combined \ | ||
--outdir only_nanopore \ | ||
-with-tower \ | ||
-resume | ||
|
||
echo "$(date): testing defaults" | ||
-resume && \ | ||
echo "$(date): testing sample sheet" && \ | ||
nextflow run /home/eriny/sandbox/Donut_Falls \ | ||
-profile singularity \ | ||
--reads /home/eriny/sandbox/test_files/donut/combined \ | ||
--illumina /home/eriny/sandbox/test_files/donut/illumina \ | ||
--outdir default \ | ||
--sample_sheet /home/eriny/sandbox/test_files/donut/sample_sheet.csv \ | ||
--outdir sample_sheet \ | ||
--sequencing_summary /home/eriny/sandbox/test_files/donut/sequencing_summary_FAS76150_35058c5c.txt \ | ||
-with-tower \ | ||
-resume | ||
|
||
echo "$(date): testing raven" | ||
-resume && \ | ||
echo "$(date): testing raven" && \ | ||
nextflow run /home/eriny/sandbox/Donut_Falls \ | ||
-profile singularity \ | ||
--reads /home/eriny/sandbox/test_files/donut/combined \ | ||
--illumina /home/eriny/sandbox/test_files/donut/illumina \ | ||
--sample_sheet /home/eriny/sandbox/test_files/donut/sample_sheet.csv \ | ||
--assembler raven \ | ||
--outdir raven \ | ||
-with-tower \ | ||
-resume | ||
|
||
echo "$(date): testing miniasm" | ||
-resume && \ | ||
echo "$(date): testing miniasm" && \ | ||
nextflow run /home/eriny/sandbox/Donut_Falls \ | ||
-profile singularity \ | ||
--reads /home/eriny/sandbox/test_files/donut/combined \ | ||
--illumina /home/eriny/sandbox/test_files/donut/illumina \ | ||
--sample_sheet /home/eriny/sandbox/test_files/donut/sample_sheet.csv \ | ||
--assembler miniasm \ | ||
--outdir miniasm \ | ||
-with-tower \ | ||
-resume | ||
|
||
echo "$(date): testing unicycler" | ||
-resume && \ | ||
echo "$(date): testing lr_unicycler" && \ | ||
nextflow run /home/eriny/sandbox/Donut_Falls \ | ||
-profile singularity \ | ||
--sample_sheet /home/eriny/sandbox/test_files/donut/sample_sheet.csv \ | ||
--assembler lr_unicycler \ | ||
--outdir lr_unicycler \ | ||
-with-tower \ | ||
-resume && \ | ||
echo "$(date): testing unicycler" && \ | ||
nextflow run /home/eriny/sandbox/Donut_Falls \ | ||
-profile singularity \ | ||
--reads /home/eriny/sandbox/test_files/donut/combined \ | ||
--illumina /home/eriny/sandbox/test_files/donut/illumina \ | ||
--sample_sheet /home/eriny/sandbox/test_files/donut/sample_sheet.csv \ | ||
--assembler unicycler \ | ||
--outdir unicycler \ | ||
-with-tower \ | ||
-resume | ||
|
||
|
||
echo "$(date): testing empty" | ||
-resume && \ | ||
echo "$(date): testing masurca" && \ | ||
nextflow run /home/eriny/sandbox/Donut_Falls \ | ||
-profile singularity \ | ||
--sample_sheet /home/eriny/sandbox/test_files/donut/sample_sheet.csv \ | ||
--assembler masurca \ | ||
--outdir masurca \ | ||
-with-tower \ | ||
-resume && \ | ||
echo "$(date): testing empty" && \ | ||
nextflow run /home/eriny/sandbox/Donut_Falls \ | ||
-profile singularity \ | ||
--reads shouldntexist \ | ||
--illumina wontexist \ | ||
--outdir nonexistent \ | ||
--sequencing_summary doesntexit \ | ||
-with-tower \ | ||
-resume | ||
|
||
|
||
echo "$(date): testing trycycler" && \ | ||
nextflow run /home/eriny/sandbox/Donut_Falls \ | ||
-profile singularity \ | ||
--sample_sheet /home/eriny/sandbox/test_files/donut/sample_sheet.csv \ | ||
--outdir trycycler \ | ||
--assembler trycycler \ | ||
--trycycler_min_fasta 12 \ | ||
-with-tower \ | ||
-resume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
process bandage { | ||
publishDir "${params.outdir}", mode: 'copy' | ||
tag "${sample}" | ||
cpus 1 | ||
container 'quay.io/biocontainers/bandage:0.8.1--hc9558a2_2' | ||
|
||
input: | ||
tuple val(sample), file(gfa) | ||
|
||
output: | ||
tuple val(sample), path("bandage/${sample}.{png,svg}"), emit: fastq | ||
path "bandage/${sample}_mqc.png", emit: summary | ||
|
||
shell: | ||
''' | ||
mkdir -p bandage | ||
Bandage image !{gfa} bandage/!{sample}.png !{params.bandage_options} | ||
Bandage image !{gfa} bandage/!{sample}.svg !{params.bandage_options} | ||
cp bandage/!{sample}.png bandage/!{sample}_mqc.png | ||
''' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
process copy { | ||
publishDir "${params.outdir}", mode: 'copy' | ||
tag "putting all fasta files in ${params.outdir}/consensus" | ||
container 'quay.io/biocontainers/multiqc:1.14--pyhdfd78af_0' | ||
|
||
input: | ||
file(fasta) | ||
|
||
output: | ||
path "consensus/" | ||
|
||
shell: | ||
''' | ||
mkdir consensus | ||
for fasta in !{fasta} | ||
do | ||
cat $fasta | sed 's/_length/ length/g' | sed 's/_circular/ circular/g' | sed 's/_polypolish//g' > consensus/$fasta | ||
done | ||
''' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.