Skip to content
Snippets Groups Projects
Select Git revision
  • 231fd9e6a361a8095f07f32ce8c42b69f9409f8f
  • master default protected
  • dev
  • v2.0.0
  • v0.4.0
  • v0.3.0
  • v0.2.9
  • v0.2.8
  • v0.2.7
  • v0.2.6
  • v0.1.0
  • v0.2.5
  • v0.2.4
  • v0.2.3
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.2
18 results

fastqdump.nf

Blame
  • Forked from LBMC / nextflow
    Source project has a limited visibility.
    indexing.nf 862 B
    params.fasta = "$baseDir/data/bam/*.fasta"
    params.annotation = "$baseDir/data/bam/*.gtf"
    
    log.info "fasta files : ${params.fasta}"
    
    Channel
      .fromPath( params.fasta )
      .ifEmpty { error "Cannot find any fasta files matching: ${params.fasta}" }
      .set { fasta_file }
    Channel
      .fromPath( params.annotation )
      .ifEmpty { error "Cannot find any annotation files matching: ${params.annotation}" }
      .set { annotation_file }
    
    process index_fasta {
      tag "$fasta.baseName"
      publishDir "results/mapping/index/", mode: 'copy'
    
      input:
        file fasta from fasta_file
        file annotation from annotation_file
    
      output:
        file "*" into index_files
    
      script:
    """
    STAR --runThreadN ${task.cpus} --runMode genomeGenerate \
    --genomeDir ./ \
    --genomeFastaFiles ${fasta} \
    --sjdbGTFfile ${annotation} \
    --genomeSAindexNbases 3 # min(14, log2(GenomeLength)/2 - 1)
    """
    }