Skip to content

wrong Tn5 shifting. #41

Description

@ruochiz

The Tn5 shifting in this repo has been using

awk -v OFS="\t" '{if($9=="+"){print $1,$2+4,$6+4,$7}else if($9=="-"){print $1,$2-5,$6-5,$7}}'

But it should be

awk -v OFS="\t" '{if($9=="+"){print $1,$2+4,$6-5,$7}else if($9=="-"){print $1,$2-5,$6+4,$7}}'

(For paired-end sequencing, if the first mate mapped to '+', shift +4 on the left cut site, and shift -5 on the right cut site (which is on the other read mapped to '-',)

With the current code, the Tn5 shifting has been using +4/+4 shifting for most of the reads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions