Perbase base-depth
2
1
Entering edit mode
2.1 years ago

Hi all, I hope everyone is doing great. may I ask if anyone knows how can I get perbase base-depth function? I have followed the instruction in https://github.com/sstadick/perbase and downloaded it by conda install -c bioconda perbase. The help function shows that only simple-depth function is included and it doesn't support lots of options like selecting specific region or filtering according to the base quality and I need these for my analysis.

Ps: I need to quantify mismatches like A-G or T-C mismatches. an example of the output of perbase base-depth is below enter image description here

and that is why I'm interested specifically in perbase. your help is much appreciated.

Best regards, Surar.

simple-depth base-depth perbase • 1.3k views
ADD COMMENT
0
Entering edit mode

IGVtools gives per base depth at any given position (from bam files).

ADD REPLY
2
Entering edit mode
9 months ago

Hi all, I would like to share the solution if anybody has the same issue. the problem was I had installed an old version of perbase and all I needed was to reinstall the tool using conda install -c bioconda perbase=0.8.1 and now I have all the functions required. Thanks Surar

ADD COMMENT
1
Entering edit mode
2.1 years ago
samtools depth -r 'chr1:234-456' -q 78 in.bam
ADD COMMENT
1
Entering edit mode

Thank you very much for your reply, I'm not interested in simple depth but I need to quantify mismatches. I have edited the question too.

ADD REPLY
1
Entering edit mode
ADD REPLY
0
Entering edit mode

Another way is to subset bam based on your requirements and pass that bam to perbase app.

ADD REPLY
0
Entering edit mode

Thanks cpad0112, is there any tools that filter according to single base quality from bam? because I need to exclude the low quality and N bases before the analysis.

ADD REPLY
0
Entering edit mode

try sambamba and filter syntax and parameters is here: https://github.com/biod/sambamba/wiki/%5Bsambamba-view%5D-Filter-expression-syntax. Base quality filtering should have been done at fastq instead at bam level. At this point, most of the filters work at mapping quality.

ADD REPLY

Login before adding your answer.

Traffic: 2269 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6