Skip to content

Commit

Permalink
new clustering parameter added
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikSchultheis committed Dec 6, 2018
1 parent c6c42ca commit b769d49
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions config/cluster.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
params{
sequence_coverage=8
threads=1

//reduce_bed
kmer=10
aprox_motif_len=10
threads=1
motif_occurence=1
min_seq_length=10

//cdhit_wrapper
global=0
identity=0.8
sequence_coverage=8
memory=800
throw_away_seq=9
strand=0
}
4 changes: 2 additions & 2 deletions pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ process reduce_bed {

script:
"""
Rscript ${path_bin}/reduce_bed.R -i ${bed} -k ${params.kmer} -m ${params.aprox_motif_len} -o ${name}_reduced.bed -t ${params.threads}
Rscript ${path_bin}/reduce_bed.R -i ${bed} -k ${params.kmer} -m ${params.aprox_motif_len} -o ${name}_reduced.bed -t ${params.threads} -f ${params.motif_occurence} -s ${params.min_seq_length}
"""
}

Expand All @@ -91,7 +91,7 @@ process clustering {

script:
"""
Rscript ${path_bin}/cdhit_wrapper.R -i ${bed} -A ${params.sequence_coverage} -o ${name}_clusterd.bed
Rscript ${path_bin}/cdhit_wrapper.R -i ${bed} -A ${params.sequence_coverage} -o ${name}_clusterd.bed -c ${params.identity} -G ${params.global} -M ${params.memory} -l ${params.throw_away_seq} -r ${params.strand} -T ${params.threads}
"""
}

Expand Down

0 comments on commit b769d49

Please sign in to comment.