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

bam generated with bwa-meth #17

Open
PoisonAlien opened this issue Feb 28, 2017 · 3 comments
Open

bam generated with bwa-meth #17

PoisonAlien opened this issue Feb 28, 2017 · 3 comments

Comments

@PoisonAlien
Copy link

I aligned my Nome-seq reads with bwa-meth. Now I want to look at ndr and endogenous methylation. Following your protocol, I need to generate vcf. Does the bam file and index generated by bwa-meth compatible with biscuit ?

@wangyunpengbio
Copy link

wangyunpengbio commented Aug 5, 2017

It seems that I have encountered the sam problem.My script is:

biscuit pileup -r index/hg19.fa -i sams/SRR1282202.align.sort.bam -o SRR1282202.vcf -q 20
bgzip SRR1282202.vcf
tabix -p vcf SRR1282202.vcf.gz
biscuit vcf2bed -t hcg SRR1282202.vcf.gz > SRR1282202.hcg.bed &
biscuit vcf2bed -t gch SRR1282202.vcf.gz > SRR1282202.gch.bed &

And the result file(SRR1282202.hcg.bed and SRR1282202.gch.bed)contains nothing.### What's wrong with it?
However,using -t cg -t snp -t c ,I have got some results.

biscuit vcf2bed -k 10 -t cg SRR1282202.vcf.gz > SRR1282202.cg.bed
biscuit vcf2bed -k 10 -t snp SRR1282202.vcf.gz
biscuit vcf2bed -t c SRR1282202.vcf.gz > SRR1282202.c.bed

@shenhui1986
Copy link

shenhui1986 commented Aug 6, 2017 via email

@wangyunpengbio
Copy link

wangyunpengbio commented Aug 7, 2017

Thanks for your prompt action.Actually,when I use biscuit to generate bam file.I still the same result and don't get the HCG and GCH result.

biscuit align -t 12 index/hg19.fa fastq/SRR1282202_1.fastq.gz fastq/SRR1282202_2.fastq.gz | samtools sort -T . -O bam -o bams/SRR1282202.bam
samtools index bams/SRR1282202.bam
biscuit tview -g chr19:7525080 SRR1282202.bam index/hg19.fa
biscuit pileup -r index/hg19.fa -i SRR1282202.bam -o SRR1282202.vcf -q 20
bgzip SRR1282202.vcf
tabix -p vcf SRR1282202.vcf.gz

biscuit vcf2bed -k 10 -t cg SRR1282202.vcf.gz > SRR1282202.cg.bed &
biscuit vcf2bed -k 10 -t snp SRR1282202.vcf.gz > SRR1282202.snp.bed &
biscuit vcf2bed -t c SRR1282202.vcf.gz > SRR1282202.c.bed &
biscuit vcf2bed -t hcg SRR1282202.vcf.gz > SRR1282202.hcg.bed &
biscuit vcf2bed -t gch SRR1282202.vcf.gz > SRR1282202.gch.bed &

SRR1282202.c.bed ,SRR1282202.cg.bed and SRR1282202.snp.bed have result.
But SRR1282202.hcg.bed and SRR1282202.gch.bed are nothing in them.

System Information
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

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

3 participants