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

    • noor121
      Reply to Latest Developments in Precision Medicine
      by noor121
      Qadri offers efficient online services designed for students and staff of University Targu Mures Medical Campus Hamburg. We streamline your academic and administrative processes for a hassle-free experience.

      VIsit us:
      https://qadri-international.com/univ...s-hamburg-umch...
      Today, 09:33 PM
    • seqadmin
      Non-Coding RNA Research and Technologies
      by seqadmin




      Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

      Nobel Prize for MicroRNA Discovery
      This week,...
      Yesterday, 08:07 AM
    • seqadmin
      Recent Developments in Metagenomics
      by seqadmin





      Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
      09-23-2024, 06:35 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 10-02-2024, 04:51 AM
    0 responses
    97 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 10-01-2024, 07:10 AM
    0 responses
    107 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-30-2024, 08:33 AM
    1 response
    111 views
    0 likes
    Last Post EmiTom
    by EmiTom
     
    Started by seqadmin, 09-26-2024, 12:57 PM
    0 responses
    20 views
    0 likes
    Last Post seqadmin  
    Working...
    X