Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 —$…ßÎeÇQG¥ˆ+žÂ"—$æìÞÿF
    ‘,¡%‚+˱ÇÉ ÛÙˆái¹ ˧jÑY{õ¥å¯¦{wÿººzuuøå¯ÿâ'?ùßÿùÉOúõÛoÞ|ýîûo¿xÿÉ¿üò×ÿ¹|Üþò§?ýõ§ÿôÙ?þö“¿ûôWŸüó/~÷»ŸýêÍ_~ÿöOïß¾ûî“¿úÅ7ß|Ô*Þ¿ùþ‡þôÅ?¼ùê¯~öé¯þõ“Çßw˾øöý»wßüð/ýÿÆ_OÏOýÇ÷?|óö÷?ÿñ?þßýòÝ·ß~ñÝWŸÔôíŸzoþãOýüýüë>ûþí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

  • #2
    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.

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Advancing Precision Medicine for Rare Diseases in Children
      by seqadmin




      Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
      12-16-2024, 07:57 AM
    • seqadmin
      Recent Advances in Sequencing Technologies
      by seqadmin



      Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

      Long-Read Sequencing
      Long-read sequencing has seen remarkable advancements,...
      12-02-2024, 01:49 PM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 12-17-2024, 10:28 AM
    0 responses
    39 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 12-13-2024, 08:24 AM
    0 responses
    52 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 12-12-2024, 07:41 AM
    0 responses
    38 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 12-11-2024, 07:45 AM
    0 responses
    46 views
    0 likes
    Last Post seqadmin  
    Working...
    X