Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Francy87
    Member
    • May 2013
    • 28

    #1

    mapping with botwie/bwa

    Hello!
    I'm sorry for the stupid question, but I'm new in metagenomic and metatranscriptomic stuffs... I'd like to map my Hiseq shotgun metatranscriptomic reads to some reference genomes (I already know the microbial community composition, since I analysed 16S data), using botwie or bwa. The question is: do I have to map each sample to each genome? or is there a way to map to more genomes at the same time? And if not, how can I merge the multiple mapping files from the same sample, then?

    Thanks a bunch
    Francesca
  • jimmybee
    Senior Member
    • Sep 2010
    • 119

    #2
    Originally posted by Francy87 View Post
    Hello!
    I'm sorry for the stupid question, but I'm new in metagenomic and metatranscriptomic stuffs... I'd like to map my Hiseq shotgun metatranscriptomic reads to some reference genomes (I already know the microbial community composition, since I analysed 16S data), using botwie or bwa. The question is: do I have to map each sample to each genome? or is there a way to map to more genomes at the same time? And if not, how can I merge the multiple mapping files from the same sample, then?

    Thanks a bunch
    Francesca
    No you wont have to map them separately. Create a multi-fasta file of all your reference sequences and then build the mapping index from that.

    Comment

    • Francy87
      Member
      • May 2013
      • 28

      #3
      Originally posted by jimmybee View Post
      No you wont have to map them separately. Create a multi-fasta file of all your reference sequences and then build the mapping index from that.

      Hi Jimmy,
      Thanks for your reply. Can I just 'cat' all the reference genomes together or should I modify them in some way?
      Thanks again
      Francesca

      Comment

      • swbarnes2
        Senior Member
        • May 2008
        • 910

        #4
        Cat them together, then you use bowtie-build or bwa index to make the index. Then you align.

        Comment

        • jimmybee
          Senior Member
          • Sep 2010
          • 119

          #5
          Originally posted by Francy87 View Post
          Hi Jimmy,
          Thanks for your reply. Can I just 'cat' all the reference genomes together or should I modify them in some way?
          Thanks again
          Francesca
          Yeah no need to modify them.

          Comment

          • Francy87
            Member
            • May 2013
            • 28

            #6
            Hi again!
            I downloaded some reference genomes from the ncbi ftp site (about 500). Is there a simple way to cat all of them recursevely without doing it one at the time? I have many directories, each one with one genome in .fna format...

            Thanks

            Comment

            • dpryan
              Devon Ryan
              • Jul 2011
              • 3478

              #7
              If all of the *.fna files are only buried one directory deep, then something like the following bash script should work:

              Code:
              #!/bin/bash
              dirs=`find . -mindepth 1 -maxdepth 1 -type d`
              for d in $dirs
              do
                  cat $d/*.fna >> genomes.fna
              done
              This could be modified to easily handle the presence of subdirectories.

              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, Yesterday, 11:13 AM
              0 responses
              16 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, Yesterday, 10:48 AM
              0 responses
              15 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              35 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              42 views
              0 reactions
              Last Post SEQadmin2  
              Working...