Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • GenoMax
    replied
    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.

    Leave a comment:


  • MGCBrown
    started a topic Issues with samtools mpileup and bcftools view

    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

Latest Articles

Collapse

  • seqadmin
    New Genomics Tools and Methods Shared at AGBT 2025
    by seqadmin


    This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

    The Headliner
    The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
    03-03-2025, 01:39 PM
  • seqadmin
    Investigating the Gut Microbiome Through Diet and Spatial Biology
    by seqadmin




    The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
    02-24-2025, 06:31 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, 03-20-2025, 05:03 AM
0 responses
18 views
0 reactions
Last Post seqadmin  
Started by seqadmin, 03-19-2025, 07:27 AM
0 responses
24 views
0 reactions
Last Post seqadmin  
Started by seqadmin, 03-18-2025, 12:50 PM
0 responses
19 views
0 reactions
Last Post seqadmin  
Started by seqadmin, 03-03-2025, 01:15 PM
0 responses
187 views
0 reactions
Last Post seqadmin  
Working...