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

Error: could not parse the input VCF #56

Open
wangzhx36 opened this issue Sep 19, 2023 · 1 comment
Open

Error: could not parse the input VCF #56

wangzhx36 opened this issue Sep 19, 2023 · 1 comment

Comments

@wangzhx36
Copy link

Hi, Dr. Song
I successfully generated alignment.maf using AnchorWave and converted it into a BAM file using the provided script. However, when I attempted to convert the BAM file to a VCF file using bcftools, I noticed that the output VCF file only contains partial variant information from the first chromosome. Below are my scripts and error messages. I'm not sure what the reason is, and I hope to get your assistance.

script:
maf2bam=/data/software/AnchorWave-1.2.1/scripts/maf-convert
sP1=/data2/projects/zwang/macropodus_compare/synteny/pseudogenome/Anchorwave/MOP/
sP2=/data2/projects/zwang/macropodus_compare/synteny/pseudogenome/Anchorwave/MOP/Betta_splendens
python2 $maf2bam sam $sP2/alignment.maf | sed 's/[0-9]+H//g'
| samtools view -O BAM --reference $sP1/mopscf1-23.fa - | samtools sort - > ./Bspl.bam
samtools index $sP2/Bspl.bam
bcftools mpileup -Ou -q 30 -f $sP1/mopscf1-23.fa $sP2/Bspl.cram | bcftools call -m -Ou | bcftools norm -f $sP1/mopscf1-23.fa -Oz -o Bspl.g.vcf.gz

error:
[mpileup] 1 samples in 1 input files
Note: none of --samples-file, --ploidy or --ploidy-file given, assuming all sites are diploid
[mpileup] maximum number of reads per input file set to -d 250
Error: could not parse the input VCF
Lines total/split/realigned/skipped: 11397420/0/0/0

@baoxingsong
Copy link
Owner

We never succeeded in calling variants from AnchorWave alignments using any short-reads mapping variant calling pipeline.
Please try this pipeline https://github.com/baoxingsong/AnchorWave/blob/master/doc/GATK.md

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