GithubHelp home page GithubHelp logo

Comments (5)

secastel avatar secastel commented on August 13, 2024

You can fix this error by including "--as_q_cutoff 0" as an argument when running phaser.

Note, phaser performs much better when an alignment score cutoff is used. Note that this is distinct from a mapping score or MAPQ. If possible I would suggest using an aligner that outputs an alignment score, which is included as an "AS" tag, such as STAR.

from phaser.

molecularsensei avatar molecularsensei commented on August 13, 2024

Thanks for getting back. I used bwa mem for alignment and the AS tag is present in the bam file.

SRR6251266.167696392 97 chr8 10051 60 42M = 149413 139404 ACAAATGTCCTTTACATGTTTTCTGTTACAGTAGTAACAATA AAAAAEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE NM:i:0 MD:Z:42 MC:Z:42M AS:i:42 XS:i:29

Is this not the AS tag I should look for?

I also tried using the --as_q_cutoff 0 argument but get an error:
....
minimum mapq: 60
mapping reads to variants...
completed chromosome chr8...
processing mapped reads...
retrieved 0 reads
#3. Identifying connected variants...
calculating sequencing noise level...
FATAL ERROR: No reads could be matched to variants. Please double check your settings and input files. Common reasons for this occurring include: 1) MAPQ or BASEQ set too conservatively 2) BAM and VCF have different chromosome names (IE 'chr1' vs '1')
....

I will try mapping with STAR and see if things change.

from phaser.

secastel avatar secastel commented on August 13, 2024

You're right that the AS tag is present in the BAM, so I'm confused as to the why the AS score wasn't getting picked up. As for the fact that 0 reads are getting processed, can you confirm that your VCF naming matches the BAM naming, e.g. "chr1" is listed in the first column of the VCF. If the VCF simply has "1" you can run phaser with the option "--chr_prefix chr" which should fix that.

As for the AS problem, is there any way you could provide a sample BAM so that I could debug the issue you are having? Were you able to try with STAR aligned reads?

from phaser.

bmansfeld avatar bmansfeld commented on August 13, 2024

For other people who might still be getting this using GATK for variant calling.
The GATK4 RNASeq pipeline recommends a CIGAR split step and I think that is causing some issues with the bam files used in Phaser.
If I used the STAR aligned, deduplicated but not CIGAR N split bam file with my GATK4 derived vcf I was able to use Phaser without getting this error.
Ben

from phaser.

teng-gao avatar teng-gao commented on August 13, 2024

Getting this error as well, pretty mysteriously for only 1 out of my BAMs. Edit: actually, turns out my error is because the BAM is not paired end and I set paired_end = 1

from phaser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.