extracting segments from .qual file
1
0
Entering edit mode
8.7 years ago
Stephen ▴ 10

Is there anything similar to getfasta (bedtools) but will also work on an associated .qual file in the format:

>Scaff3
50 50 50 50 50 40 40 40 30 30 30 34 34 34 34

I basically need to extract a list of specific segments from the .qual file, and wondering if anyone knows of a suitable tool already available.

qual fasta bedtools • 1.4k views
ADD COMMENT
0
Entering edit mode
8.7 years ago

You can use pyfaidx for this:

pip install (--user) pyfaidx
faidx scaffolds.qual Scaff3:1-8 Scaff3:4-11
>Scaff3:1-8
50 50 50
>Scaff3:4-11
50 50 50

Since a "qual" file has 3 characters per position, just make sure you count in threes to preserve your formatting.

ADD COMMENT

Login before adding your answer.

Traffic: 2136 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