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

Get phred quality for ab1 traces #149

Open
azdaly opened this issue Aug 25, 2019 · 5 comments
Open

Get phred quality for ab1 traces #149

azdaly opened this issue Aug 25, 2019 · 5 comments

Comments

@azdaly
Copy link

azdaly commented Aug 25, 2019

Hello!
So I'm using python 3.5.5 and biopython 1.73, and I'm trying to get the phred quality scores for each peak in my .ab1 files. Unfortunately the following just returns an array of zeroes, which I know is false (given the scores I'm returned on the Indigo website):

record = SeqIO.read('peak3_3.SP6.ab1', 'abi')    
let_ann = record.letter_annotations['phred_quality']    
print(let_ann)    

What am I doing wrong?
Thanks!!

@peterjc
Copy link
Member

peterjc commented Aug 26, 2019

Note there are two sets of qualities in ABI, PCON1 (user edits) and PCON2 (base caller), and it is the later we report via record.letter_annotations['phred_quality']

Depending how the sequence was configured, sometimes the scores really are zero - talk to your sequencing service and/or run a new base and quality calling, e.g. using tracetuner

@azdaly
Copy link
Author

azdaly commented Aug 27, 2019

So unfortunately PCON1 is also just a bunch of zeroes, and I'm very confident that PCON2 must not be zeroes, because when I upload the very same .abi file onto the Indigo website, it shows non-zero peak call qualities.

@peterjc
Copy link
Member

peterjc commented Aug 27, 2019

Then have a look in record.annotations["raw]" for "PCON1" and "PCON2"?

@azdaly
Copy link
Author

azdaly commented Aug 28, 2019

Yes, both are zeroes.

@peterjc
Copy link
Member

peterjc commented Aug 29, 2019

Curious, I wonder if the Indigo site does its own calling?

Have you tried another tool - or could you share a sample file (privately by email if necessary with @bow and me)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants