SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
error when running samtools mpileup and bcftools linp5 Bioinformatics 5 08-22-2014 04:41 AM
Samtools view bam parse region issues rkizen Bioinformatics 6 07-25-2013 02:51 PM
Odd behavior using samtools mpileup, bcftools JimC Bioinformatics 7 05-21-2013 11:34 AM
Samtools mpileup/bcftools cristae8 Bioinformatics 3 05-02-2012 12:43 PM

Reply
 
Thread Tools
Old 06-20-2017, 10:27 AM   #1
MGCBrown
Member
 
Location: Canada

Join Date: May 2017
Posts: 15
Default Issues with samtools mpileup and bcftools view

Hello,

I've been having some trouble interpreting the outputs from samtools variant calling pipeline. I'm working with a de novo transcriptome assembly and a .bam file containing the reads from 1 sample.

When I run '$ samtools mpileup -g -f Trinity.adj.fasta NFS_6525_bowtie2.coordSorted.bam | bcftools view -bvcg - > NFS_6525_var.raw.bcf' I get a var.raw.bcf file that is ~275 million bytes of this output:

  BC $eQG+"$F
,%+˱ i ˧jY{實{wzuu'?Oo|oxɿ|??W/~_~O߾7|*޿?~ww/_OO?|??ݷ~WzoO>wo_|

I understand that a .bcf is in binary format but I am still unsure of the output.

Then, when I ran $ nano on my .vcf file after running the command '$ bcftools view SFS_25428_var.raw.bcf | vcfutils.pl varFilter -D 100 - > SFS_25428_var.flt.vcf', I get a file that is 1.5 billion bytes of this:

^@^@^A^G^WT7<*>^@^Q^D^Q^Z^Q �^Q^P^@^@@A^@^@�@^@^@^@^@^@^@^@^@^@�mD^@^[iG^@^@^@^@^@^@^@^@^@^@�A^@^@�A^@^@^@^@^@^@^@^@^@^@�C^@��E^@^@^@^@^@^@^@^@^Q %^@^@�?^@^@^@^@^Q ^U^@^@�?^Q^K^U^@^@^@^@^Q^N1^@3^T�^$
^UZ�^Q^F^U^@^@�?^Q^G^U^@^@�?^Q ^U^@^@�?^Q^H^U^@^@�?^Q^K^U^@^@^@^@^Q^Na^@2^^<!^^�^@^@^@^F^@^@^@| ^A^@ݾ^A^@^@^A^@^@^@^@^@^@^

During '$ bcftools view SFS_25428_var.raw.bcf | vcfutils.pl varFilter -D 100 - > SFS_25428_var.flt.vcf', my terminal window rapidly prints this to the screen:

Argument "^A" isn't numeric in multiplication (*) at /usr/bin/vcfutils.pl line 302, <> line 1708539.
Argument "^F" isn't numeric in addition (+) at /usr/bin/vcfutils.pl line 268, <> line 1708540.
Argument "^F" isn't numeric in numeric ge (>=) at /usr/bin/vcfutils.pl line 268, <> line 1708540.
Argument "^A" isn't numeric in multiplication (*) at /usr/bin/vcfutils.pl line 302, <> line 1708540.
Argument "^F" isn't numeric in numeric ge (>=) at /usr/bin/vcfutils.pl line 268, <> line 1708541.
Argument "^A" isn't numeric in multiplication (*) at /usr/bin/vcfutils.pl line 302, <> line 1708541.
Argument "^F" isn't numeric in numeric ge (>=) at /usr/bin/vcfutils.pl line 268, <> line 1708542.
Argument "^A" isn't numeric in multiplication (*) at /usr/bin/vcfutils.pl line 302, <> line 1708542.
Argument "^F" isn't numeric in numeric ge (>=) at /usr/bin/vcfutils.pl line 268, <> line 1708543.


Does anyone have any thoughts or input? I would really appreciate it. I'm a MSc level ecologist that was thrust into the fire of bioinformatics to forgive me if this is basic.

Cheers,

Mike
MGCBrown is offline   Reply With Quote
Old 06-20-2017, 10:32 AM   #2
GenoMax
Senior Member
 
Location: East Coast USA

Join Date: Feb 2008
Posts: 6,975
Default

A vcf file should be plain text (unless compressed) so there is something wrong. What version of samtools/bcftools are you using? If not the latest I would suggest you try upgrading first.
GenoMax is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 12:30 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO