Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • thh32
    Member
    • Feb 2014
    • 60

    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
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #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

    • swbarnes2
      Senior Member
      • May 2008
      • 910

      #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

      • thh32
        Member
        • Feb 2014
        • 60

        #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

        • sphil
          Senior Member
          • Apr 2010
          • 192

          #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

          • thh32
            Member
            • Feb 2014
            • 60

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

            Comment

            • Brian Bushnell
              Super Moderator
              • Jan 2014
              • 2709

              #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

              • mylaser
                Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                by mylaser
                Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
                If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
                This guide explains everything you need to know about...
                Today, 01:13 AM
              • SEQadmin2
                Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                by SEQadmin2



                Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                ...
                07-09-2026, 11:10 AM
              • SEQadmin2
                Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                by SEQadmin2



                Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                07-08-2026, 05:17 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 07-09-2026, 10:04 AM
              0 responses
              14 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-08-2026, 10:08 AM
              0 responses
              10 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-07-2026, 11:05 AM
              0 responses
              19 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-02-2026, 11:08 AM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Working...