How To Extract All Alleles For A Specific Location From A Bam/ Sam Files?
2
1
Entering edit mode
13.0 years ago
Mpiro ▴ 10

I need to know a specific location's allele from a bam file to find out if It is homozygous or heterozygous alleles in that location. Appreciate your help.

allele bam sequencing • 4.1k views
ADD COMMENT
1
Entering edit mode
13.0 years ago

BAM/SAM files describe the alignment of the short reads on the reference. There is no statistics about the probability Zygosity of the allele here.

However, using samtools view, you can visualize your reads at a given position or extract the zygosity of your mutation using samtools pileup

http://samtools.sourceforge.net/

ADD COMMENT
1
Entering edit mode
13.0 years ago
Pirooz1 ▴ 10

GATK UnifiedGenotyper with genotype option can generate it:

java -Xmx4000m [?] -jar $gatk <br> -R $REF <br> -T UnifiedGenotyper <br> -I subject.bam <br> --DBSNP $DBSNP <br> --out snps.vcf <br> -stand_call_conf 30.0 <br> -stand_emit_conf 10.0 <br> -l INFO <br> -A HaplotypeScore <br> -L $ExonFile <br> -U ALLOW_UNINDEXED_BAM <br> --genotype[?]

ADD COMMENT

Login before adding your answer.

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