Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • mpileup to vcf

    Hi everyone,

    I know there is a perl script 'sam2vcf.pl' to convert a pileup file to .vcf format. But I wanted to know whether there is any tools/script that converts mpileup format to .vcf format WITHOUT calling variants. I used:

    $ samtools mpileup -u -l chr1.snps -f hg19.fa sample1_filter_sort.bam | bcftools view - > out.vcf
    But this is giving me a weird output (unlike vcf):

    HTML Code:
    #CHROM	POS	ID	REF	ALT	QUAL	FILTER	INFO	FORMAT	P01273_DCM
    chr1	1211292	.	C	X	0	.	DP=0;I16=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;QS=0.000000,0.000000,0.000000,0.000000	PL	0,0,0
    chr1	2069172	.	C	X	0	.	DP=0;I16=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;QS=0.000000,0.000000,0.000000,0.000000	PL	0,0,0
    Komal Rathi
    Bioinformatics Application Developer
    University of Pennsylvania

  • #2
    Look in the samtools manual:
    BCFTools view arguments:
    -v Output variant sites only (force -c)

    So your command becomes:
    Code:
    samtools mpileup -u -l chr1.snps -f hg19.fa sample1_filter_sort.bam | bcftools view -v -c - > out.vcf
    EDIT:
    I misunderstood your question, in my previous command you also calculate the variants...
    The file you have is already a vcf file, but with all positions in it, also the positions without a SNP...
    Last edited by Jetse; 03-12-2014, 04:00 AM.

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Recent Advances in Sequencing Analysis Tools
      by seqadmin


      The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
      05-06-2024, 07:48 AM
    • seqadmin
      Essential Discoveries and Tools in Epitranscriptomics
      by seqadmin




      The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
      04-22-2024, 07:01 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Yesterday, 02:46 PM
    0 responses
    14 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-07-2024, 06:57 AM
    0 responses
    13 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-06-2024, 07:17 AM
    0 responses
    17 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-02-2024, 08:06 AM
    0 responses
    23 views
    0 likes
    Last Post seqadmin  
    Working...
    X