Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added optional -x flag for ivar trim. allows trimming of reads that occur at a specified offset position relative to the primer sequence positions #88

Merged
merged 4 commits into from Feb 5, 2021

Conversation

AlaaALatif
Copy link
Member

In some amplicon-based sequencing protocols (e.g. SWIFT), polymerases can add additional bases, which can in turn lead mismatches. This PR includes a fix that allows users to specify an offset using the -x flag when running ivar trim. This is used to correctly trim reads that contain such polymerase-induced read artifacts.

@@ -85,7 +85,7 @@ void print_bed_format(){
std::cout << "It requires the following columns delimited by a tab: chrom, chromStart, chromEnd, name, score, strand" << std::endl;
}

std::vector<primer> populate_from_file(std::string path){
std::vector<primer> populate_from_file(std::string path, int32_t offset = 0){
Copy link
Member

@gkarthik gkarthik Feb 5, 2021

Choose a reason for hiding this comment

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

Given that offset will not be needed in most of the function calls, can you please overload this function instead of adding offset to every call?

@gkarthik gkarthik merged commit ce1490a into master Feb 5, 2021
stenglein-lab added a commit to stenglein-lab/viral_variant_caller that referenced this pull request Jul 26, 2022
1. Changed clipping penalty parameter in bwa mem from 5 to 1.  This favors more soft-trimming at the ends of reads.  Since variants at the ends of reads are less reliable, this reduces false-positive variant calling.
2. Expanded ivar trim trimming using the -x offset parameter.  This trims extra bases around primer binding sites.  This also makes variant calling more stringent.

See these issues for more information on these settings:

nf-core/viralrecon#170

andersen-lab/ivar#88
@cmaceves cmaceves deleted the swift_fix branch July 29, 2022 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants