Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Separating aligned reads

    I have been using bowtie2 to align my reads to an indexed reference genome and used the --un-conc and --al-conc functions to separate out the aligned and non aligned reads into separate files, however I have just received a new data set which has been merged. I have tried using the -U option in bowtie2 to see if this worked but it doesn't seem to. Does anyone know of another program I could use for this and the appropriate command? I am looking into BWA to see if this is an option but am new to the program.

    Thanks,
    Tom

  • #2
    You can do that with BBMap:

    (index)
    bbmap.sh ref=reference.fasta -Xmx29g

    (map)
    bbmap.sh in=reads.fq outm=mapped.fq outu=unmapped.fq -Xmx29g

    That will split it into two fastq files. If you change the output file extensions to ".sam" instead of ".fq", you will get sam output. If you have paired reads in 2 files, you would do this:

    bbmap.sh in1=reads1.fq in2=reads2.fq outm1=mapped.fq outm2=mapped2.fq outu1=unmapped1.fq outu2=unmapped2.fq -Xmx29g

    The "-Xmx29g" indicates how much memory java is allowed to use; set that at ~85% of your physical memory.
    Last edited by Brian Bushnell; 04-06-2014, 08:51 AM.

    Comment


    • #3
      samtools view can filter your .bam for mapped or unmapped reads. Unmapped reads will have the 4 flag set, mapped reads will not.

      Comment


      • #4
        @Brian Bushnell I have fasta files, would BBMap still work this this?

        @swbarnes2 I dont have a .bam file so cannot use samtools

        Bowtie now accepts my files but is just outputting into the .sam file instead of the --un-con or --al-conc files I have specified although the files them-selves are created by BOWTIE2

        Comment


        • #5
          doesn't --un-con and --al-conc just state wether pairs could be mapped concordantly and not whether they could be mapped at all?

          Comment


          • #6
            @sphil yes it does, just realised this and without -conc i works absolutely fine. Thanks for all your help.

            Comment


            • #7
              Originally posted by thh32 View Post
              @Brian Bushnell I have fasta files, would BBMap still work this this?
              Yes, BBMap works with fastq or fasta files.

              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, Today, 02:46 PM
              0 responses
              10 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
              16 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