Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #16
    Oh - that's an intentional protection from overwriting files. Just delete the output file first or add the "overwrite" flag.

    Comment

    • lyw1
      Member
      • Sep 2014
      • 33

      #17
      high contaninants

      Thanks.

      Input is being processed as unpaired

      Input: 385043 reads 10781204 bases.
      Contaminants: 341911 reads (88.80%) 9573508 bases (88.80%)
      Result: 43132 reads (11.20%) 1207696 bases (11.20%)

      What is diffinition of contaminants? It looks very high.

      Comment

      • lyw1
        Member
        • Sep 2014
        • 33

        #18
        I need to read 30 nt for sequences. Miseq read 32 nt in sequencing. Thus many sequences have NN at last 2 positions. Does this relate to high contaminant rate?

        Comment

        • Brian Bushnell
          Super Moderator
          • Jan 2014
          • 2709

          #19
          Are you using bbduk.sh? That's the only one that prints anything about contaminants. Can you show your specific command line?

          Anyway, if you tried filtering out adapters and you got a result like that, it means you have almost no product and mostly adapter sequence.

          Comment

          • lyw1
            Member
            • Sep 2014
            • 33

            #20
            Yes, bbduk.sh.

            Input is being processed as unpaired

            Input: 385043 reads 10781204 bases.
            Contaminants: 341911 reads (88.80%) 9573508 bases (88.80%)
            Result: 43132 reads (11.20%) 1207696 bases (11.20%)

            Comment

            • Brian Bushnell
              Super Moderator
              • Jan 2014
              • 2709

              #21
              Please give me the exact command line (what you typed before you hit enter).

              Comment

              • lyw1
                Member
                • Sep 2014
                • 33

                #22
                k=16 shows high contaminants than k=26

                zheng@zheng-XPS-8500:~/Desktop/bbmap/20140916ngs$ bbduk.sh -Xmx1g in=probe48mix25fg_S7_L001_R2_001.fastq ref=ngs13template.fasta stats=probe48mix25fg_S7_L001_R2_001_26.txt k=26 fbm
                java -ea -Xmx1g -cp /home/zheng/Desktop/bbmap/current/ jgi.BBDukF -Xmx1g in=probe48mix25fg_S7_L001_R2_001.fastq ref=ngs13template.fasta stats=probe48mix25fg_S7_L001_R2_001_26.txt k=26 fbm
                Executing jgi.BBDukF [-Xmx1g, in=probe48mix25fg_S7_L001_R2_001.fastq, ref=ngs13template.fasta, stats=probe48mix25fg_S7_L001_R2_001_26.txt, k=26, fbm]

                No output stream specified. To write to stdout, please specify 'out=stdout.fq' or similar.
                Initial:
                Memory: free=237m, used=14m

                Added 13 kmers; time: 0.023 seconds.
                Memory: free=228m, used=23m

                Input is being processed as unpaired

                Input: 159642 reads 4469976 bases.
                Contaminants: 130724 reads (81.89%) 3660272 bases (81.89%)
                Result: 28918 reads (18.11%) 809704 bases (18.11%)

                Time: 0.197 seconds.
                Reads Processed: 159k 811.47k reads/sec
                Bases Processed: 4469k 22.72m bases/sec
                zheng@zheng-XPS-8500:~/Desktop/bbmap/20140916ngs$ ^C
                zheng@zheng-XPS-8500:~/Desktop/bbmap/20140916ngs$ bduk.sh -Xmx1g in=probe48mix25fg_S7_L001_R2_001.fastq ref=ngs13template.fasta stats=probe48mix25fg_S7_L001_R2_001_16.txt k=16 fbm
                bduk.sh: command not found
                zheng@zheng-XPS-8500:~/Desktop/bbmap/20140916ngs$ bbduk.sh -Xmx1g in=probe48mix25fg_S7_L001_R2_001.fastq ref=ngs13template.fasta stats=probe48mix25fg_S7_L001_R2_001_16.txt k=16 fbm
                java -ea -Xmx1g -cp /home/zheng/Desktop/bbmap/current/ jgi.BBDukF -Xmx1g in=probe48mix25fg_S7_L001_R2_001.fastq ref=ngs13template.fasta stats=probe48mix25fg_S7_L001_R2_001_16.txt k=16 fbm
                Executing jgi.BBDukF [-Xmx1g, in=probe48mix25fg_S7_L001_R2_001.fastq, ref=ngs13template.fasta, stats=probe48mix25fg_S7_L001_R2_001_16.txt, k=16, fbm]

                No output stream specified. To write to stdout, please specify 'out=stdout.fq' or similar.
                Initial:
                Memory: free=237m, used=14m

                Added 143 kmers; time: 0.028 seconds.
                Memory: free=228m, used=23m

                Input is being processed as unpaired

                Input: 159642 reads 4469976 bases.
                Contaminants: 151727 reads (95.04%) 4248356 bases (95.04%)
                Result: 7915 reads (4.96%) 221620 bases (4.96%)

                Comment

                • Brian Bushnell
                  Super Moderator
                  • Jan 2014
                  • 2709

                  #23
                  So... that's telling you that you are getting matches between the stuff in your input file (probe48mix25fg_S7_L001_R2_001.fastq) and your reference file (ngs13template.fasta). And a shorter kmer will always find more matches in the presence of error.

                  probe48mix25fg_S7_L001_R2_001_26.txt will contain a list of which reference sequences were seen, and how many times they were seen.

                  Comment

                  • lyw1
                    Member
                    • Sep 2014
                    • 33

                    #24
                    And a shorter kmer will always find more matches in the presence of error.

                    Here k=16 shows less match sequences than k=26

                    for k=16
                    Input: 159642 reads 4469976 bases.
                    Contaminants: 151727 reads (95.04%) 4248356 bases (95.04%)
                    Result: 7915 reads (4.96%) 221620 bases (4.96%)

                    for k=26
                    Input: 159642 reads 4469976 bases.
                    Contaminants: 130724 reads (81.89%) 3660272 bases (81.89%)
                    Result: 28918 reads (18.11%) 809704 bases (18.11%)

                    Comment

                    • Brian Bushnell
                      Super Moderator
                      • Jan 2014
                      • 2709

                      #25
                      In this case, the output is misleading... BBDuk assumes that the ref file is a file of contaminants because that's what I originally designed it for. So "Contaminants" actually means "Things that match the reference". I may change the wording eventually.

                      In other words, 95.04% of the reads matched the reference for K=16 and 81.89% did for K=26.

                      Comment

                      • lyw1
                        Member
                        • Sep 2014
                        • 33

                        #26
                        Great, thanks.

                        Zheng

                        Comment

                        • lyw1
                          Member
                          • Sep 2014
                          • 33

                          #27
                          Is there a size limitation for the referece sequences? It will not work when I add a 20 bp reference sequence.

                          Comment

                          • Brian Bushnell
                            Super Moderator
                            • Jan 2014
                            • 2709

                            #28
                            The size limit is the same as kmer length. So, if k=30, it will not work with anything less than a 30bp reference.

                            Comment

                            • lyw1
                              Member
                              • Sep 2014
                              • 33

                              #29
                              Thanks.

                              How do you separate unambiguousReads and ambiguousReads in bbmap.sh?

                              Comment

                              • Brian Bushnell
                                Super Moderator
                                • Jan 2014
                                • 2709

                                #30
                                Ambiguously mapped reads get a "XT:A:R" tag in the sam output while unambiguously mapped get "XT:A:U".

                                You can also forbid ambiguously-mapping reads using the flag "ambig=toss", which will consider them unmapped.

                                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...
                                  Yesterday, 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, Yesterday, 10:08 AM
                                0 responses
                                6 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 07-07-2026, 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
                                29 views
                                0 reactions
                                Last Post SEQadmin2  
                                Working...