Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbk0asis
    Member
    • Dec 2011
    • 41

    #1

    Fasta manipulation tools???

    Hello, everyone.
    I have a peak data that I can see on UCSC genome browser.
    I downloaded the sequences of all the peaks in fasta format and tried to align with ClustalX/W.
    but failed due to the duplicated headers (of seq ID) of the sequences.

    Can anyone tell me how to change or remove the headers for multiple alignment?
    Is there any software for that?
  • twaddlac
    Member
    • Feb 2011
    • 49

    #2
    I don't know of any programs that solve that problem specifically, but you could always write some script to append an arbitrary identifier to the end of each sequence.

    Comment

    • gringer
      David Eccles (gringer)
      • May 2011
      • 845

      #3
      Originally posted by mbk0asis View Post
      Can anyone tell me how to change or remove the headers for multiple alignment?
      Is there any software for that?
      For FASTA manipulation, my first port of call is FASTX-Toolkit, and then EMBOSS. A quick glance through the FASTX-Toolkit reveals a program called fastx_renamer. Here's something that should change sequence headers to a simple counter:

      Code:
      fastx_renamer -n COUNT -i input.fasta -o output.fasta

      Comment

      • mbk0asis
        Member
        • Dec 2011
        • 41

        #4
        Thank you very much!!!
        I will try now.

        Comment

        • JackieBadger
          Senior Member
          • Mar 2009
          • 385

          #5
          Galaxy is a community-driven web-based analysis platform for life science research.


          super easy fasta manipulation. video tutorials are also very good

          It employs the above programs via a GUI

          Comment

          • mbk0asis
            Member
            • Dec 2011
            • 41

            #6
            Hi, all... again.
            I failed to install FastX-Toolkit on my computer (LinuxMint11 64bit - Ubuntu based).
            I am trying to find what went wrong.
            Meanwhile, what is the name of EMBOSS tool that can manipulate fasta files?

            Comment

            • gringer
              David Eccles (gringer)
              • May 2011
              • 845

              #7
              Originally posted by mbk0asis View Post
              I failed to install FastX-Toolkit on my computer (LinuxMint11 64bit - Ubuntu based).
              fastx-toolkit is in Debian, so it should also be in Ubuntu and Mint:

              Code:
              aptitude install fastx-toolkit

              Comment

              • mbk0asis
                Member
                • Dec 2011
                • 41

                #8
                # sudo aptitude install fastx-toolkit

                No candidate version found for fastx-toolkit
                No candidate version found for fastx-toolkit
                No packages will be installed, upgraded, or removed.
                0 packages upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
                Need to get 0 B of archives. After unpacking 0 B will be used.

                ???

                Comment

                • gringer
                  David Eccles (gringer)
                  • May 2011
                  • 845

                  #9
                  It's in the oneiric and precise universe repositories from Ubuntu. Add one of those to your package repostiories list:

                  Comment

                  • dvanic
                    Member
                    • Jan 2012
                    • 61

                    #10
                    To completely remove the headers just use awk:
                    cat fasta.filename | awk '0 == NR % 2' > sequences_only
                    But the FASTX-toolkit is in general quite a useful utility to have, so perhaps have a look at the instructions here:
                    http://hannonlab.cshl.edu/fastx_tool...all_ubuntu.txt and here:


                    Hope this helps!

                    Comment

                    • gringer
                      David Eccles (gringer)
                      • May 2011
                      • 845

                      #11
                      Originally posted by dvanic View Post
                      To completely remove the headers just use awk
                      Here's a perl one-liner which will replace fasta headers with the current input line number:

                      Code:
                      perl -pe 's/^>.*$/">$."/e' input.fasta > output.fasta
                      Same thing with awk:
                      Code:
                      awk '{if(/^>/){print ">"FNR} else{print $0}}' input.fasta > output.fasta

                      Comment

                      • mbk0asis
                        Member
                        • Dec 2011
                        • 41

                        #12
                        Finally, it worked, GRINGER.

                        I really really appreciate your help.

                        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
                          ...
                          10-14-2026, 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, 10-15-2026, 10:52 AM
                        0 responses
                        23 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 10-14-2026, 05:39 AM
                        0 responses
                        27 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 10-13-2026, 09:56 AM
                        0 responses
                        23 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 10-09-2026, 11:14 AM
                        0 responses
                        28 views
                        0 reactions
                        Last Post SEQadmin2  
                        Working...