Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lyw1
    Member
    • Sep 2014
    • 33

    #31
    What does this mean:

    zheng@zheng-XPS-8500:~/Desktop/bbmap/20140916ngs$ kmercountexact.sh in=Nfkb-05RNS160m_S5_L001_R1_001.fastq outk=Nfkb-05RNS160m_S5_L001_R1_001_counts16.txt mincount=3 k=16
    java -ea -Xmx11527m -cp /home/zheng/Desktop/bbmap/current/ jgi.CountKmersExact in=Nfkb-05RNS160m_S5_L001_R1_001.fastq outk=Nfkb-05RNS160m_S5_L001_R1_001_counts16.txt mincount=3 k=16
    Executing jgi.CountKmersExact [in=Nfkb-05RNS160m_S5_L001_R1_001.fastq, outk=Nfkb-05RNS160m_S5_L001_R1_001_counts16.txt, mincount=3, k=16]

    ways=37
    Initial:
    Memory: free=187m, used=64m

    Final:
    Memory: free=473m, used=216m

    Input: 780893 reads 21865004 bases.
    Result: 0 reads (0.00%) 0 bases (0.00%)
    Unique Kmers: 8523380
    Exception in thread "main" java.lang.AssertionError: TGTGTATAAGAGACCA 3

    at kmer.KmerNode.dumpKmersAsText(KmerNode.java:155)
    at kmer.HashForest.dumpKmersAsText(HashForest.java:211)
    at kmer.HashArray.dumpKmersAsText(HashArray.java:249)
    at jgi.CountKmersExact.dumpKmersAsText(CountKmersExact.java:749)
    at jgi.CountKmersExact.process(CountKmersExact.java:383)
    at jgi.CountKmersExact.main(CountKmersExact.java:58)

    Comment

    • Brian Bushnell
      Super Moderator
      • Jan 2014
      • 2709

      #32
      That's an error that you noted before. You can either keep running the curent version (but add -da to the command line) or grab the latest version here, in which it is fixed.

      Comment

      • lyw1
        Member
        • Sep 2014
        • 33

        #33
        Hi Brian,

        I have a problem when I try to trim the adapter sequences.

        zheng@zheng-XPS-8500:~/Desktop/bbmap/20141010ngs$ bbduk.sh -Xmx1g in=RNColonCancer_S9_L001_R1_001.fastq out=RNColonCancer_S9_L001_R1_001clean.fastq ktrim=r ref=nextera.fa.gz,truseq.fa.gz k=25 mink=12 hdist=1
        java -ea -Xmx1g -cp /home/zheng/Desktop/bbmap/current/ jgi.BBDukF -Xmx1g in=RNColonCancer_S9_L001_R1_001.fastq out=RNColonCancer_S9_L001_R1_001clean.fastq ktrim=r ref=nextera.fa.gz,truseq.fa.gz k=25 mink=12 hdist=1
        Executing jgi.BBDukF [-Xmx1g, in=RNColonCancer_S9_L001_R1_001.fastq, out=RNColonCancer_S9_L001_R1_001clean.fastq, ktrim=r, ref=nextera.fa.gz,truseq.fa.gz, k=25, mink=12, hdist=1]

        maskMiddle was disabled because useShortKmers=true
        Exception in thread "main" java.lang.RuntimeException: Can't read file 'nextera.fa.gz'
        at align2.Tools.testInputFiles(Tools.java:65)
        at jgi.BBDukF.<init>(BBDukF.java:610)
        at jgi.BBDukF.main(BBDukF.java:66)

        Thanks.

        Comment

        • Brian Bushnell
          Super Moderator
          • Jan 2014
          • 2709

          #34
          When you specify "ref=nextera.fa.gz,truseq.fa.gz", you actually have to set the full path to the files or else put them in your working directory. After you unzip BBMap, they will be in /bbmap/resources/nextera.fa.gz and /bbmap/resources/truseq.fa.gz

          -Brian

          Comment

          • lyw1
            Member
            • Sep 2014
            • 33

            #35
            Get rid of adapter sequence

            Hi Brian,

            In my case, I know the insert length for sequencing. It should be able to trim the adapter sequences by removing extra sequence. For example, my insert is 50 bp. I need to get rid of the sequences from the position of 51. Does BBmap have a similar function for this purpose? Thanks.

            Zheng

            Comment

            • Brian Bushnell
              Super Moderator
              • Jan 2014
              • 2709

              #36
              Originally posted by lyw1 View Post
              Hi Brian,

              In my case, I know the insert length for sequencing. It should be able to trim the adapter sequences by removing extra sequence. For example, my insert is 50 bp. I need to get rid of the sequences from the position of 51. Does BBmap have a similar function for this purpose? Thanks.

              Zheng
              Yes. If the insert size is always exactly 50:

              bbduk.sh -Xmx1g in=reads.fq out=trimmed.fq forcetrimright=49

              Comment

              • lyw1
                Member
                • Sep 2014
                • 33

                #37
                Great.

                Thanks. I like it.

                Comment

                • lyw1
                  Member
                  • Sep 2014
                  • 33

                  #38
                  Hi Brian,

                  If I add 70 bp inserts between sequencing adapters and run 75 cycles sequencing from both sides, I should be able to get 50 bp at 5' side from read 1 sequence according to your instruction. Is it possible for me get these 50 bp from read 2 sequence (should be from 21 bp to 70 bp of sequencing result)? Is it possible for me to get the sequence in the middle (from position 25 to 65)? thanks,

                  Zheng

                  Comment

                  • Brian Bushnell
                    Super Moderator
                    • Jan 2014
                    • 2709

                    #39
                    Zheng,

                    I would expect that for 70bp inserts, paired-ended, using 75 cycles, the bases at position 20-69 in read 2 would correspond to the the bases at position 0-49 in read 1 (these positions are all 0-based). The command to get them would be

                    The command for that would be:

                    bbduk.sh -Xmx1g in=reads.fq out=trimmed.fq ftr=69 ftl=20

                    where ftl and ftr stand for "forcetrimright" and "forcetrimleft".

                    Comment

                    • lyw1
                      Member
                      • Sep 2014
                      • 33

                      #40
                      Got it. thanks.

                      Comment

                      • lyw1
                        Member
                        • Sep 2014
                        • 33

                        #41
                        Hi Brian,

                        I found some sequences that don't have a known leading sequence. Those sequences are amplified in PCR but they are not my target sequence. Is it possible for me to pick all the sequences that include same leading sequences (at 5' end or 3' end)? Then I can remove the leading sequence to get my target sequences. Thanks,

                        Zheng

                        Comment

                        • Brian Bushnell
                          Super Moderator
                          • Jan 2014
                          • 2709

                          #42
                          Originally posted by lyw1 View Post
                          Hi Brian,

                          I found some sequences that don't have a known leading sequence. Those sequences are amplified in PCR but they are not my target sequence. Is it possible for me to pick all the sequences that include same leading sequences (at 5' end or 3' end)? Then I can remove the leading sequence to get my target sequences. Thanks,

                          Zheng
                          Zheng,

                          Yes, that is possible, if you know the sequence. You can use BBDuk for filtering a specific sequence at the beginning of the read like this:

                          bbduk.sh -Xmx1g in=reads.fq outm=matched.fq outu=unmatched.fq restrictleft=25 k=25 literal=AAAAACCCCCTTTTTGGGGGAAAAA

                          In this case, all reads starting with "AAAAACCCCCTTTTTGGGGGAAAAA" will end up in "matched.fq" and all other reads will end up in "unmatched.fq". Specifically, the command means "look for 25-mers in the leftmost 25 bp of the read", which will require an exact prefix match, though you can relax that if you want.

                          So you could bin all the reads with your known sequence, then look at the remaining reads to see what they have in common. You can do the same thing with the tail of the read using "restrictright" instead, though you can't use both restrictions at the same time.

                          Comment

                          • lyw1
                            Member
                            • Sep 2014
                            • 33

                            #43
                            Thanks, Brian. That is great.

                            Zheng

                            Comment

                            • lyw1
                              Member
                              • Sep 2014
                              • 33

                              #44
                              Hi Brian,

                              There is bug here,

                              Exception in thread "main" java.lang.RuntimeException: Unknown parameter restrictleft=10
                              at jgi.BBDukF.<init>(BBDukF.java:427)
                              at jgi.BBDukF.main(BBDukF.java:66)

                              Comment

                              • Brian Bushnell
                                Super Moderator
                                • Jan 2014
                                • 2709

                                #45
                                Zheng,

                                Are you using the latest version (34.19) of BBTools? I added "restrictleft" and "restrictright" only a few weeks ago, so an old version won't support those flags...

                                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, 10-15-2026, 10:52 AM
                                0 responses
                                14 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-14-2026, 05:39 AM
                                0 responses
                                21 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-13-2026, 09:56 AM
                                0 responses
                                20 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-09-2026, 11:14 AM
                                0 responses
                                27 views
                                0 reactions
                                Last Post SEQadmin2  
                                Working...