Skip to content

Commit

Permalink
Merge pull request #69 from rki-mf1/replacing_static_PBSIM3
Browse files Browse the repository at this point in the history
Replacing static pbsim3
  • Loading branch information
DimitriTernovoj authored Aug 23, 2024
2 parents b802523 + 1f1c999 commit 0bbf22e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file removed bin/pbsim
Binary file not shown.
4 changes: 3 additions & 1 deletion modules/pbsim/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ process PBSIM {
// Store results
publishDir "${params.outdir}", mode: 'copy', pattern: "simulated_hap${sample}.ONTWGS*.fastq"

conda "bioconda::pbsim3=3.0.4"

// Process I/O
input:
tuple val(sample), path(fasta)
Expand All @@ -17,7 +19,7 @@ process PBSIM {
script:
unique_seed = (params.seed * sample) % 2147483647 // that's (2^31)-1, the upper bound for mason
"""
${projectDir}/${params.pbsim_bin} \
pbsim \
--seed ${unique_seed} \
--strategy ${params.pbsim_strategy} \
--prefix simulated_hap${sample}.ONTWGS \
Expand Down
1 change: 0 additions & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ params {
nb_reads = 10000

// PBSIM Oxford Nanopore (WGS) - Read simulation parameters
pbsim_bin = 'bin/pbsim'
pbsim_method = 'qshmm'
pbsim_model = 'aux/pbsim_model/QSHMM-ONT-HQ.model'
pbsim_depth = 500
Expand Down

0 comments on commit 0bbf22e

Please sign in to comment.