Skip to content

Commit

Permalink
add Pindel max range limit and svlen filter
Browse files Browse the repository at this point in the history
  • Loading branch information
stevekm committed Jul 18, 2019
1 parent fc44576 commit f5a8bac
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2625,6 +2625,7 @@ process pindel {
--config-file "${config_file}" \
--output-prefix "${output_dir}/" \
--number_of_threads \${NSLOTS:-\${NTHREADS:-1}} \
--max_range_index 2 \
--include "${targets_bed}"
pindel2vcf \
Expand Down Expand Up @@ -2776,11 +2777,13 @@ process filter_vcf_pairs {
else if( caller == 'Pindel' )
"""
# only keep 'PASS' entries
# only keep SNV less than 500bp long
# get the header
grep '^#' "${vcf}" > "${filtered_vcf}"
# get the 'PASS' entries
grep -v '^#' "${vcf}" | grep 'PASS' >> "${filtered_vcf}" || :
gatk.sh -T SelectVariants \
-R "${ref_fasta}" \
-V "${vcf}" \
-select 'SVLEN < 500' \
> "${filtered_vcf}"
"""
else
error "Invalid caller: ${caller}"
Expand Down

0 comments on commit f5a8bac

Please sign in to comment.