Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • sphil
    replied
    Originally posted by jstrohm View Post
    Thanks Brian, I tried it with 8 threads and it seems just as slow. Can I just run bbmerge.sh from the Windows command line instead to avoid any issues with virtualization?
    That you can't use more cores might have something to do with the setup of your virtual machine. If you only hand through one core, it is obvious that you can't work with 8.... Check on that if you want to use your virtual machine instead Windows...

    Leave a comment:


  • Brian Bushnell
    replied
    Jeff,

    You can run BBMap and BBMerge in Windows, you just can't use the shellscript. So:

    bbmerge.sh
    becomes
    java -ea -Xmx200m -cp path\to\bbmap\current\ jgi.BBMerge

    and
    bbmap.sh
    becomes
    java -ea -Xmx7g -cp path\to\bbmap\current\ align2.BBMap

    Leave a comment:


  • jstrohm
    replied
    Thanks Brian, I tried it with 8 threads and it seems just as slow. Can I just run bbmerge.sh from the Windows command line instead to avoid any issues with virtualization?

    Leave a comment:


  • Brian Bushnell
    replied
    Jeff,

    That's strange. BBMap is usually very fast with such a small input file, but if the reference is extremely repetitive, it can slow down a lot. You can speed it up by adding the flags "fast" and "t=8". "t=8" forces it to use 8 threads; that's not normally needed because the number of cores is autodetected, but it looks like the virtualization somehow interfered with that. "fast" decreases sensitivity slightly, and typically doubles the speed.

    But if the speed is still a problem with those settings, you can merge by overlap with BBMerge first and then only map the unmerged reads, which should vastly reduce the number that need to be mapped; THEN merge the mapped reads by mapping information. BBMerge will only take a few seconds. The modified commands would be:

    bbmerge.sh in=reads.fq out=merged_by_overlap.fq outu=unmerged_A.fq t=8

    bbmap.sh -Xmx7g ref=reference.fa in=unmerged_A.fq outm=mapped.fq outu=unmapped.fq nodisk po int rbm don fast t=8

    bbmerge.sh in=mapped.fq out=merged_by_mapping.fq outu=unmerged_B.fq int usemapping parsecustom int t=8


    So ultimately your merged reads will be in the two 'merged' files and your unmerged reads will be in unmerged_B.fq (interleaved).

    Leave a comment:


  • jstrohm
    replied
    Hi Brian,

    I finally got around to trying this bbmap code that you suggested.

    I'm trying to merge fungal ITS1 sequences. My two Illumina read files each contain ~340,000 reads (173MB total size). My reference set is the current fasta release of the UNITE database with ~44,000 sequences (31 MB in size).

    I'm running the code in a virtualized (Virtualbox) version of Ubuntu Linux on a PC with 8GB of RAM and 8 processors.

    It's currently using 22% of CPU resources and 80MB of RAM.

    It's been running for an hour now... Is there any way to speed things up? I've been using UPARSE for my other reads and all steps finish in a manner of seconds.

    The output files are 5MB (mapped) and 3MB (unmapped) in size so far.

    Here is the command that I used and the output that has been generated so far:
    qiime@qiime-VirtualBox:~/bbmap$ ./bbmap.sh -Xmx7g ref=/home/qiime/bbmap/UNITE_release_s_10.09.2014.fasta in1=/home/qiime/bbmap/reads/EM1-102-R1-ITS_TRIMM_R1.fastq in2=/home/qiime/bbmap/reads/EM1-102-R1-ITS_TRIMM_R2.fastq outm1=mapped_R1.fq outu1=unmapped_R1.fq outm2=mapped_R2.fq outu2=unmapped_R2.fq nodisk po int rbm don
    java -ea -Xmx7g -cp /home/qiime/bbmap/current/ align2.BBMap build=1 overwrite=true fastareadlen=500 -Xmx7g ref=/home/qiime/bbmap/UNITE_release_s_10.09.2014.fasta in1=/home/qiime/bbmap/reads/EM1-102-R1-ITS_TRIMM_R1.fastq in2=/home/qiime/bbmap/reads/EM1-102-R1-ITS_TRIMM_R2.fastq outm1=mapped_R1.fq outu1=unmapped_R1.fq outm2=mapped_R2.fq outu2=unmapped_R2.fq nodisk po int rbm don
    Executing align2.BBMap [build=1, overwrite=true, fastareadlen=500, -Xmx7g, ref=/home/qiime/bbmap/UNITE_release_s_10.09.2014.fasta, in1=/home/qiime/bbmap/reads/EM1-102-R1-ITS_TRIMM_R1.fastq, in2=/home/qiime/bbmap/reads/EM1-102-R1-ITS_TRIMM_R2.fastq, outm1=mapped_R1.fq, outu1=unmapped_R1.fq, outm2=mapped_R2.fq, outu2=unmapped_R2.fq, nodisk, po, int, rbm, don]

    BBMap version 33.21
    Set INTERLEAVED to true
    Retaining first best site only for ambiguous mappings.
    Executing dna.FastaToChromArrays2 [/home/qiime/bbmap/UNITE_release_s_10.09.2014.fasta, 1, writeinthread=false, genscaffoldinfo=true, retain, waitforwriting=false, gzip=true, chromc=false, maxlen=536670912, writechroms=false, minscaf=1, midpad=300, startpad=8000, stoppad=8000, nodisk=true]

    Set genScaffoldInfo=true
    Reset INTERLEAVED to false because paired input files were specified.
    Set genome to 1

    Loaded Reference: 1.142 seconds.
    Loading index for chunk 1-1, build 1
    Indexing threads started for block 0-1
    Indexing threads finished for block 0-1
    Generated Index: 7.765 seconds.
    Analyzed Index: 6.103 seconds.
    Started output stream: 2.810 seconds.
    Started output stream: 0.001 seconds.
    Cleared Memory: 0.166 seconds.
    Processing reads in paired-ended mode.
    Started read stream.
    Started 1 mapping thread.

    MANY THANKS!

    Leave a comment:


  • Brian Bushnell
    replied
    The website address is fine.

    Leave a comment:


  • jstrohm
    replied
    How would you like me to cite BBtools?

    Leave a comment:


  • jstrohm
    replied
    Excellent! Thank you

    Leave a comment:


  • Brian Bushnell
    replied
    I've uploaded a new version of BBTools; you can merge them like this:

    bbmap.sh -Xmx7g ref=reference.fa in=reads.fq outm=mapped.fq outu=unmapped.fq nodisk po int rbm don

    bbmerge.sh in=mapped.fq out=merged_by_mapping.fq int usemapping parsecustom

    bbmerge.sh in=unmapped.fq out=merged_by_overlap.fq outu=unmerged.fq int

    Then you can concatenate the merged_by_mapping.fq and merged_by_overlap.fq files to get a single file.

    Note that these commands all assume you are using a single interleaved file. For two files, you can use the "in1", "in2", "out1", and "out2" flags.

    Leave a comment:


  • jstrohm
    replied
    Thanks guys! Worst case scenario I'll just have to throw out my reverse reads. Compared with read lengths three years ago, 250bp isn't awful anyway...

    What are your thoughts on quality filtering, clustering and then BLASTing the forward and reverse reads separately. Then merging the taxonomic results?

    Leave a comment:


  • Brian Bushnell
    replied
    Jeff,

    BBMerge has the capability to do this from custom headers generated by BBMap, but currently it is not easy; I will update it to make it simple (probably later today; I'll let you know). Normal fastq headers do NOT contain the relevant information, and sam files don't provide any guarantee of read ordering, so it's nontrivial.

    Leave a comment:


  • westerman
    replied
    I haven't used Tophat in a while but I thought that it could use any reference library -- genome or amplicon. The underlying program is bowtie2 which certainly handles odd-ball references.

    Leave a comment:


  • jstrohm
    started a topic Non-overlapping read assembly

    Non-overlapping read assembly

    Hi there,

    I'm sequencing amplicons on the MiSeq for soil metagenomics, and some of my amplicons are length variable. As a result, some are longer than 500bp. I'm faced with throwing out some of these reverse reads for ITS1 as they won't merge/ assemble.

    I've thought up a scheme that might enable me to use them and I'm wondering what you think.

    If I could merge them together and have a standard set of gaps in between the forward and reverse reads, then I could align them against a database to get the "proper" gap length.

    I'm having trouble finding software that can do this merging, but first I want to confirm that fastq files actually provide enough information to merge reads based on sequence identifier titles without sequence overlaps.

    Tophat's capabilities are the closest to what I need, but it needs a whole reference genome instead of an amplicon reference library to align against.

    Thanks!

    -Jeff

Latest Articles

Collapse

  • SEQadmin2
    Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
    by SEQadmin2



    CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

    Despite this, “CRISPR helped turn genome editing from a specialized technique into
    ...
    07-31-2026, 11:01 AM
  • SEQadmin2
    Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
    by SEQadmin2


    Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

    The systematic characterization of the human proteome has
    ...
    07-20-2026, 11:48 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

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 08-03-2026, 10:13 AM
0 responses
21 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 07-31-2026, 02:55 AM
0 responses
34 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 07-24-2026, 12:17 PM
0 responses
25 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 07-23-2026, 11:41 AM
0 responses
21 views
0 reactions
Last Post SEQadmin2  
Working...