- 
                Notifications
    
You must be signed in to change notification settings  - Fork 929
 
Add fq2bam fq align dd bwamem #9309
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
          
     Open
      
      
            eduard-watchmaker
  wants to merge
  27
  commits into
  master
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
add_fq2bam_fq_align_dd_bwamem
  
      
      
   
  
    
  
  
  
 
  
      
    base: master
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
      
        
          +476
        
        
          −35
        
        
          
        
      
    
  
  
     Open
                    Changes from 19 commits
      Commits
    
    
            Show all changes
          
          
            27 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      cec1719
              
                Added fq2bam
              
              
                eduard-watchmaker e2a4e73
              
                test fix
              
              
                eduard-watchmaker 548bcae
              
                typo
              
              
                eduard-watchmaker 222cdc6
              
                PE channel
              
              
                eduard-watchmaker f3b9ad7
              
                tidying
              
              
                eduard-watchmaker fc3bd64
              
                gpu snap
              
              
                 7688d5b
              
                test fix for snaps
              
              
                eduard-watchmaker 370d087
              
                Merge branch 'add_fq2bam_fq_align_dd_bwamem' of github.com:nf-core/mo…
              
              
                eduard-watchmaker 3a4c54b
              
                gpu snapshot
              
              
                 0201ccb
              
                PR feedback
              
              
                eduard-watchmaker 61a9670
              
                tests
              
              
                eduard-watchmaker 4a214d0
              
                cpu snapshot
              
              
                 d30ae9a
              
                tests
              
              
                eduard-watchmaker e8888ff
              
                Merge branch 'add_fq2bam_fq_align_dd_bwamem' of github.com:nf-core/mo…
              
              
                eduard-watchmaker 33a8c26
              
                last snapshot
              
              
                 021771c
              
                Merge branch 'master' into add_fq2bam_fq_align_dd_bwamem
              
              
                eduard-watchmaker 509acdc
              
                fix channels
              
              
                eduard-watchmaker e90793a
              
                last snapshot
              
              
                 75c7cdf
              
                Merge branch 'master' into add_fq2bam_fq_align_dd_bwamem
              
              
                eduard-watchmaker d40d5b5
              
                PR feedback
              
              
                eduard-watchmaker f02a8de
              
                Merge branch 'add_fq2bam_fq_align_dd_bwamem' of github.com:nf-core/mo…
              
              
                eduard-watchmaker 3378759
              
                PR feedback
              
              
                eduard-watchmaker 54d4284
              
                new cpu snapshot
              
              
                 3cd511d
              
                changing test
              
              
                eduard-watchmaker 1682b6b
              
                changing test
              
              
                eduard-watchmaker a1b02e2
              
                new gpu snapshot
              
              
                 2a7d306
              
                Merge branch 'master' into add_fq2bam_fq_align_dd_bwamem
              
              
                eduard-watchmaker File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or 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 hidden or 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
    
  
  
    
              
        
          
          
            1 change: 0 additions & 1 deletion
          
          1 
        
  subworkflows/nf-core/fastq_align_dedup_bwamem/nextflow.config
  
  
      
      
   
        100644 → 100755
      
      
    
  
    
      This file contains hidden or 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
    
  
  
    
              
              
        
          
          
            224 changes: 224 additions & 0 deletions
          
          224 
        
  subworkflows/nf-core/fastq_align_dedup_bwamem/tests/gpu.nf.test
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or 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,224 @@ | ||
| nextflow_workflow { | ||
| 
     | 
||
| name "Test Subworkflow FASTQ_ALIGN_DEDUP_BWAMEM" | ||
| script "../main.nf" | ||
| workflow "FASTQ_ALIGN_DEDUP_BWAMEM" | ||
| config "./nextflow.config" | ||
| 
     | 
||
| tag "gpu" | ||
| tag "subworkflows" | ||
| tag "subworkflows_nfcore" | ||
| tag "subworkflows/fastq_align_dedup_bwamem" | ||
| tag "parabricks/fq2bam" | ||
| tag "samtools/index" | ||
| tag "picard/markduplicates" | ||
| tag "untar" | ||
                
      
                  eduard-watchmaker marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
                
      
                  eduard-watchmaker marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| 
     | 
||
| setup { | ||
| run("BWA_INDEX") { | ||
| script "../../../../modules/nf-core/bwa/index/main.nf" | ||
| process { | ||
| """ | ||
| input[0] = Channel.of([ | ||
| [ id:'test' ], // meta map | ||
| file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/genome.fa', checkIfExists: true) | ||
| ]) | ||
                
      
                  eduard-watchmaker marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| """ | ||
| } | ||
| } | ||
| 
     | 
||
| run("BWA_INDEX", alias: 'BWA_INDEX_PE') { | ||
| script "../../../../modules/nf-core/bwa/index/main.nf" | ||
| process { | ||
| """ | ||
| input[0] = Channel.of([ | ||
| [ id:'test' ], // meta map | ||
| file('https://github.com/nf-core/test-datasets/raw/methylseq/reference/genome.fa', checkIfExists: true) | ||
| ]) | ||
| """ | ||
| } | ||
| } | ||
| } | ||
                
      
                  eduard-watchmaker marked this conversation as resolved.
               
          
            Show resolved
            Hide resolved
         | 
||
| 
     | 
||
| test("Params: parabricks/fq2bam single-end | use_gpu ") { | ||
                
      
                  eduard-watchmaker marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| when { | ||
| params { | ||
| use_gpu = true | ||
| bwa_prefix = 'genome.fa' | ||
| } | ||
                
      
                  eduard-watchmaker marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| workflow { | ||
| """ | ||
| input[0] = Channel.of([ | ||
| [ id:'test', single_end:true ], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true) | ||
| ]) | ||
| input[1] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
| ]) | ||
| input[2] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta.fai', checkIfExists: true) | ||
| ]) | ||
| input[3] = BWA_INDEX.out.index | ||
| input[4] = false // skip_deduplication | ||
                
      
                  eduard-watchmaker marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| input[5] = true // use_gpu | ||
| input[6] = Channel.empty() // interval_file | ||
| input[7] = Channel.empty() // known_sites | ||
                
      
                  eduard-watchmaker marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
                
      
                  eduard-watchmaker marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| """ | ||
| } | ||
| } | ||
| 
     | 
||
| then { | ||
| assertAll( | ||
| { assert workflow.success }, | ||
| { assert snapshot( | ||
| workflow.out.bam.collect { meta, bamfile -> bam(bamfile).getReadsMD5() }, | ||
| workflow.out.bai.collect { meta, bai -> file(bai).name }, | ||
| workflow.out.samtools_flagstat, | ||
| workflow.out.samtools_stats, | ||
| workflow.out.samtools_index_stats, | ||
| workflow.out.picard_metrics.collect { meta, metrics -> file(metrics).name }, | ||
| workflow.out.multiqc.flatten().collect { path -> file(path).name }, | ||
| workflow.out.versions | ||
| ).match() | ||
| } | ||
| ) | ||
| } | ||
| } | ||
| 
     | 
||
| test("Params: parabricks/fq2bam single-end | use_gpu | skip_deduplication") { | ||
| when { | ||
| params { | ||
| skip_deduplication = true | ||
| use_gpu = true | ||
| bwa_prefix = 'genome.fa' | ||
| } | ||
| workflow { | ||
| """ | ||
| input[0] = Channel.of([ | ||
| [ id:'test', single_end:true ], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true) | ||
| ]) | ||
| input[1] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
| ]) | ||
| input[2] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta.fai', checkIfExists: true) | ||
| ]) | ||
| input[3] = BWA_INDEX.out.index | ||
| input[4] = true // skip_deduplication | ||
| input[5] = true // use_gpu | ||
| input[6] = Channel.empty() // interval_file | ||
| input[7] = Channel.empty() // known_sites | ||
| """ | ||
| } | ||
| } | ||
| 
     | 
||
| then { | ||
| assertAll( | ||
| { assert workflow.success }, | ||
| { assert snapshot( | ||
| workflow.out.bam.collect { meta, bamfile -> bam(bamfile).getReadsMD5() }, | ||
| workflow.out.bai.collect { meta, bai -> file(bai).name }, | ||
| workflow.out.samtools_flagstat, | ||
| workflow.out.samtools_stats, | ||
| workflow.out.samtools_index_stats, | ||
| workflow.out.picard_metrics.collect { meta, metrics -> file(metrics).name }, | ||
| workflow.out.multiqc.flatten().collect { path -> file(path).name }, | ||
| workflow.out.versions | ||
| ).match() | ||
| } | ||
| ) | ||
| } | ||
| } | ||
| 
     | 
||
| test("Params: parabricks/fq2bam single-end | use_gpu | stub") { | ||
| options '-stub' | ||
| when { | ||
| 
     | 
||
| workflow { | ||
| """ | ||
| input[0] = Channel.of([ | ||
| [ id:'test', single_end:true ], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true) | ||
| ]) | ||
| input[1] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
| ]) | ||
| input[2] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta.fai', checkIfExists: true) | ||
| ]) | ||
| input[3] = BWA_INDEX.out.index | ||
| input[4] = false // skip_deduplication | ||
| input[5] = true // use_gpu | ||
| input[6] = Channel.empty() // interval_file | ||
| input[7] = Channel.empty() // known_sites | ||
| """ | ||
| } | ||
| } | ||
| 
     | 
||
| then { | ||
| assertAll( | ||
| { assert workflow.success }, | ||
| { assert snapshot(workflow.out).match() } | ||
| ) | ||
                
      
                  eduard-watchmaker marked this conversation as resolved.
               
          
            Show resolved
            Hide resolved
         | 
||
| } | ||
| } | ||
| 
     | 
||
| test("Params: parabricks/fq2bam paired-end | use_gpu | skip_deduplication") { | ||
                
      
                  eduard-watchmaker marked this conversation as resolved.
               
              
                Outdated
          
            Show resolved
            Hide resolved
         | 
||
| 
     | 
||
| when { | ||
| params { | ||
| skip_deduplication = true | ||
| use_gpu = true | ||
| bwa_prefix = 'genome.fa' | ||
| } | ||
| workflow { | ||
| """ | ||
| input[0] = Channel.of([ | ||
| [ id:'test', single_end:false ], | ||
| [ | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_1.fastq.gz', checkIfExists: true), | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/fastq/test_2.fastq.gz', checkIfExists: true) | ||
| ] | ||
| ]) | ||
| input[1] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
| ]) | ||
| input[2] = Channel.of([ | ||
| [:], | ||
| file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta.fai', checkIfExists: true) | ||
| ]) | ||
| input[3] = BWA_INDEX_PE.out.index | ||
| input[4] = true // skip_deduplication | ||
| input[5] = true // use_gpu | ||
| input[6] = Channel.empty() // interval_file | ||
| input[7] = Channel.empty() // known_sites | ||
| """ | ||
| } | ||
| } | ||
| 
     | 
||
| then { | ||
| assertAll( | ||
| { assert workflow.success }, | ||
| { assert snapshot( | ||
| workflow.out.bam.collect { meta, bamfile -> bam(bamfile).getReadsMD5() }, | ||
| workflow.out.bai.collect { meta, bai -> file(bai).name }, | ||
| workflow.out.samtools_flagstat, | ||
| workflow.out.samtools_stats, | ||
| workflow.out.samtools_index_stats, | ||
| workflow.out.picard_metrics.collect { meta, metrics -> file(metrics).name }, | ||
| workflow.out.multiqc.flatten().collect { path -> file(path).name }, | ||
| workflow.out.versions | ||
| ).match() | ||
| } | ||
| ) | ||
| } | ||
| } | ||
| } | ||
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.