Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### `Added`

- [#808](https://github.com/nf-core/eager/issues/808) Retain read group information across bam merges. Sample set to Sample name in bwa output RG.
- [#808](https://github.com/nf-core/eager/issues/808) Retain read group information across bam merges. Sample set to Sample name in bwa output RG.
- Map and base quality filters prior to genotyping with pileupcaller can now be specified.

### `Fixed`

Expand Down
5 changes: 4 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2488,8 +2488,11 @@ process genotyping_pileupcaller {
def ssmode = strandedness == "single" ? "--singleStrandMode" : ""
def bam_list = bam.flatten().join(" ")
def sample_names = samplename.flatten().join(",")
def map_q = params.pileupcaller_min_map_quality
def base_q = params.pileupcaller_min_base_quality

"""
samtools mpileup -B -q 30 -Q 30 ${use_bed} -f ${fasta} ${bam_list} | pileupCaller ${caller} ${ssmode} ${transitions_mode} --sampleNames ${sample_names} ${use_snp} -e pileupcaller.${strandedness}
samtools mpileup -B --ignore-RG -q ${map_q} -Q ${base_q} ${use_bed} -f ${fasta} ${bam_list} | pileupCaller ${caller} ${ssmode} ${transitions_mode} --sampleNames ${sample_names} ${use_snp} -e pileupcaller.${strandedness}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--ignore-RG here is needed since we now retain read group info

"""
}

Expand Down
2 changes: 2 additions & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ params {
pileupcaller_bedfile = null
pileupcaller_method = 'randomHaploid'
pileupcaller_transitions_mode = 'AllSites'
pileupcaller_min_map_quality = 30
pileupcaller_min_base_quality = 30
// ANGSD Genotype Likelihoods
angsd_glmodel = 'samtools'
angsd_glformat = 'binary'
Expand Down
18 changes: 16 additions & 2 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,20 @@
"SkipTransitions"
]
},
"pileupcaller_min_map_quality": {
"type": "integer",
"default": 30,
"description": "The minimum mapping quality to be used for genotyping.",
"fa_icon": "fas fa-filter",
"help_text": "The minimum mapping quality to be used for genotyping. Affects the `samtools pileup` output that is used by pileupcaller. Affects `-q` parameter of samtools mpileup."
},
"pileupcaller_min_base_quality": {
"type": "integer",
"default": 30,
"description": "The minimum base quality to be used for genotyping.",
"fa_icon": "fas fa-filter",
"help_text": "The minimum base quality to be used for genotyping. Affects the `samtools pileup` output that is used by pileupcaller. Affects `-Q` parameter of samtools mpileup."
},
"angsd_glmodel": {
"type": "string",
"default": "samtools",
Expand Down Expand Up @@ -1641,7 +1655,7 @@
"maltextract_percentidentity": {
"type": "number",
"description": "Minimum percent identity alignments are required to have to be reported. Recommended to set same as MALT parameter.",
"default": 85,
"default": 85.0,
"fa_icon": "fas fa-id-card",
"help_text": "Minimum percent identity alignments are required to have to be reported. Higher values allows fewer mismatches between read and reference sequence, but therefore will provide greater confidence in the hit. Lower values allow more mismatches, which can account for damage and divergence of a related strain/species to the reference. Recommended to set same as MALT parameter or higher. Default: `85.0`.\n\nOnly when `--metagenomic_tool malt` is also supplied.\n\n> Modifies MaltExtract parameter: `--minPI`"
},
Expand Down Expand Up @@ -1736,4 +1750,4 @@
"$ref": "#/definitions/metagenomic_authentication"
}
]
}
}