Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • zee
    NGS specialist
    • Apr 2008
    • 249

    #16
    OK, I can understand what you're doing here but if your $FILE represents "read_1 read_2" then your output BAM file will be called "read_1 read_2".bam which is going to cause some problems for you. Note that novoalign only recognizes paired-end reads from them being in separate files so you cannot concatenate them and assume it's going to pair them together.



    Originally posted by nguyendofx View Post
    Hi zee,

    Thanks for input, you are right. The last novoalign command was a bit confuse you.

    I run novoalign on our cluster. Here is a real command that I have used.

    echo "novoalign -k -F ILM1.8 -o SAM -f $FILE -d $REF | samtools view -S -b -h -o $FILE.novoalign.bam - " | qsub -S /bin/bash -V -q $Q -cwd -N $NAME.novocall -t 1-$LENGTH -tc $P

    where $FILE is all files for read_1 and read_2


    Thanks,
    Ng

    Comment

    • nguyendofx
      Member
      • May 2011
      • 31

      #17
      Yes, Every $FILE.fastq input file generates $FILE.bam. I view a BAM file on IGV, it shows both reads ???
      The problem could be either 'samtool flagstat' don't understand flags on a BAM file or BAM/SAM file doesn't have flags ?

      Thanks,
      Ng


      Originally posted by zee View Post
      OK, I can understand what you're doing here but if your $FILE represents "read_1 read_2" then your output BAM file will be called "read_1 read_2".bam which is going to cause some problems for you. Note that novoalign only recognizes paired-end reads from them being in separate files so you cannot concatenate them and assume it's going to pair them together.

      Comment

      • swbarnes2
        Senior Member
        • May 2008
        • 910

        #18
        flagstat understands flags just fine. And right, your bam doesn't have flags. It can't possibly have the normal paired end flags, because you told Novoalign, the software making the .sam, that you didn't have paired end data!

        The problem is not with the software. The problem is with the command line you wrote. Software isn't magic. It can't read your mind, and know that you have pairs of fastqs which are pairs. You have to tell it which fastq file is paired with whch other one. It takes five seconds to see how to do that on the novoalign quick start page, and your command line isn't going to do that.

        Comment

        • adaptivegenome
          Super Moderator
          • Nov 2009
          • 436

          #19
          Originally posted by swbarnes2 View Post
          The problem is not with the software. The problem is with the command line you wrote. Software isn't magic. It can't read your mind, and know that you have pairs of fastqs which are pairs. You have to tell it which fastq file is paired with whch other one. It takes five seconds to see how to do that on the novoalign quick start page, and your command line isn't going to do that.
          This should have been the first reply in the thread

          Comment

          • nguyendofx
            Member
            • May 2011
            • 31

            #20
            Thanks you all. Its all good now

            Comment

            • mmmm
              Senior Member
              • Jul 2013
              • 131

              #21
              Originally posted by nguyendofx View Post
              It is PE, so I expect read_1 and read_2 both should have the same positive number, not zero! I can not explain why most of output are zeros.
              using samtools flagstat on the sorted bam file- I got
              5191445 + 0 in total (QC-passed reads + QC-failed reads)
              0 + 0 duplicates
              4863917 + 0 mapped (93.69%:-nan%)
              5191445 + 0 paired in sequencing
              2595624 + 0 read1
              2595821 + 0 read2
              4752609 + 0 properly paired (91.55%:-nan%)
              4829623 + 0 with itself and mate mapped
              34294 + 0 singletons (0.66%:-nan%)

              the length of read1 is different from read2- is this correct as I understand that the length should be identical in the PE reads??

              Comment

              • dpryan
                Devon Ryan
                • Jul 2011
                • 3478

                #22
                Originally posted by mmmm View Post
                using samtools flagstat on the sorted bam file- I got
                5191445 + 0 in total (QC-passed reads + QC-failed reads)
                0 + 0 duplicates
                4863917 + 0 mapped (93.69%:-nan%)
                5191445 + 0 paired in sequencing
                2595624 + 0 read1
                2595821 + 0 read2
                4752609 + 0 properly paired (91.55%:-nan%)
                4829623 + 0 with itself and mate mapped
                34294 + 0 singletons (0.66%:-nan%)

                the length of read1 is different from read2- is this correct as I understand that the length should be identical in the PE reads??
                It depends on how the alignment was done. Some aligners allow you to align the mates individually if they can't align as a pair. Compare the number "mapped" to the number "with itself and mate mapped", noting also that you have "singletons".

                Comment

                • mmmm
                  Senior Member
                  • Jul 2013
                  • 131

                  #23
                  flagstat output

                  so it should be ok- BWA software was used in mapping to the reference genome

                  Comment

                  • dpryan
                    Devon Ryan
                    • Jul 2011
                    • 3478

                    #24
                    Yes, it seems reasonable.

                    Comment

                    Latest Articles

                    Collapse

                    • 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...
                      Today, 05:17 AM
                    • GATTACAT
                      Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                      by GATTACAT
                      Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                      07-01-2026, 11:43 AM
                    • SEQadmin2
                      Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                      by SEQadmin2


                      I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

                      Here are nine questions we think about, in roughly the order they matter, before...
                      06-18-2026, 07:11 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, Today, 10:08 AM
                    0 responses
                    6 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, Yesterday, 11:05 AM
                    0 responses
                    8 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-02-2026, 11:08 AM
                    0 responses
                    31 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 06-30-2026, 05:37 AM
                    0 responses
                    28 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...