Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ling
    Junior Member
    • Jan 2010
    • 8

    #1

    Is it possible to convert a SNP.txt to a bed file or get a SNP.bed from samtools?

    Hi all,

    To locate the SNPs in a SNP.txt file to each of coding gene exons I need to convert the TXT to a bed file in order to use BEDTools. Is there any way to do is? or is there any way to get a SNP.bed output from samtools?

    Any inputs are highly appreciated, thank!


    Ling
  • drio
    Senior Member
    • Oct 2008
    • 323

    #2
    Read this thread, you'll find the solution there:

    http://seqanswers.com/forums/showthread.php?t=2446
    -drd

    Comment

    • Ling
      Junior Member
      • Jan 2010
      • 8

      #3
      Hi Drio,

      Thank you for your message.

      But it seemed to me those were only for converting a sam/bam to a bed file. I am seeking ways to convert the output (.txt) from samtools pileup to a bed file, which may not make sense, sorry.

      Best,

      Ling

      Comment

      • drio
        Senior Member
        • Oct 2008
        • 323

        #4
        Originally posted by Ling View Post
        Hi Drio,

        Thank you for your message.

        But it seemed to me those were only for converting a sam/bam to a bed file. I am seeking ways to convert the output (.txt) from samtools pileup to a bed file, which may not make sense, sorry.

        Best,

        Ling
        Right, sorry. Why don't you write a quick script yourself?
        -drd

        Comment

        • inesdesantiago
          Member
          • Jan 2009
          • 44

          #5
          You could also use GenomeIntervals2BED.py script available within the SeqGI framework.
          Have a look: http://seqgi.sourceforge.net/Genomeintervals2bed.html

          Comment

          • vd4mindia
            Member
            • May 2013
            • 40

            #6
            @inesdesantiago
            I have a situation where I have output of SNPs from VarScan. I see the varscan outputs LOH( both as SNP and INDELS LOH). Now for INDELS its fairly easy to make a bed format file. But for SNP -LOH if I want to make the bed file what should be the trick. I know that for a SNP the base which is changed can be either start of chromosome and the next base can be the stop site or the base that is a variant can be the stop coordinate and its previous base can be the start. however if you you have situation like below. How should this be performed? Can your tool make bed files from SNP-LOH regions from this kind of situation or always it is needed to supply the genomic intervals?

            chr Position Depth
            1 1654067 65
            1 1654068 63
            I would like to know how can this situation be handled?

            Comment

            • diego diaz
              Member
              • Oct 2013
              • 62

              #7
              Sorry my ignorance but, can awk be useful for that?

              Please post some lines of your input file and some lines of your expected output file. I may help you with a awk sentence.

              Comment

              • vd4mindia
                Member
                • May 2013
                • 40

                #8
                No I have already figured out a tool that works best for this.. the bedops tool has a function vcf2bed works fit to convert the scenario and I already performed that and also am familiar with awk as well. Infact I was more concerned if the conversion is 1 based or 0 based. But that issue is solved for me. Thanks a lot.

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                  by SEQadmin2



                  Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                  Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                  ...
                  Yesterday, 09:55 AM
                • SEQadmin2
                  New Genomics Technologies Take Aim at Long-Standing Limits
                  by SEQadmin2


                  Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                  We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                  ...
                  09-28-2026, 10:25 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, Today, 10:52 AM
                0 responses
                8 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, Yesterday, 05:39 AM
                0 responses
                15 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-13-2026, 09:56 AM
                0 responses
                15 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-09-2026, 11:14 AM
                0 responses
                27 views
                0 reactions
                Last Post SEQadmin2  
                Working...