Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • GenoMax
    replied
    Try this (I am assuming that your variable expressions are correct). The log file and the redirect should be at the end of the command.

    Code:
    for x in *_R1_001.fastq;do your_bbmerge_command_along_with_options >bbmerge\/${x%_*-*_L001_R1_001.*}_bbmerge_log.txt 2>&1;done

    Leave a comment:


  • shimingt
    replied
    Log File

    Hello,

    I am a novice with command prompt. I can't seem to get a log file.

    This is my command prompt:

    for x in *_R1_001.fastq;do echo bbmerge.sh -Xmx20g in1=$x in2=${x%_R1_001.*}_R2_001.fastq out=bbmerge\/${x%_*-*_R1_001.*}_R1R2_bbmerge.fastq>bbmerge\/${x%_*-*_L001_R1_001.*}_bbmerge_log.txt 2>&1 outu1=outu1\/$x outu2=outu2\/${x%_R1_001.*}_R2_001.fastq >> bbmerge.sh;done

    Am I doing something wrong here?

    There are log files but they are all empty?
    Last edited by shimingt; 06-14-2016, 03:48 AM.

    Leave a comment:


  • GenoMax
    replied
    Originally posted by shimingt View Post
    Hello there! Is there a way we could generate a stats or log file with bbmerge?
    Stats are automatically generated with each run of BBMerge. They look something like this

    Code:
    Pairs:                  2879431
    Joined:                 2052925         71.296%
    Ambiguous:              810015          28.131%
    No Solution:            16491           0.573%
    Too Short:              0               0.000%
    
    Avg Insert:             396.7
    Standard Deviation:     98.1
    Mode:                   415
    
    Insert range:           35 - 591
    90th percentile:        524
    75th percentile:        469
    50th percentile:        402
    25th percentile:        332
    10th percentile:        262
    You can capture STDOUT/STDERR with standard bash conventions to a file (2>&1) to get the log info.

    Leave a comment:


  • shimingt
    replied
    Hello there! Is there a way we could generate a stats or log file with bbmerge?

    Leave a comment:


  • lcmb
    replied
    Thank you!

    Leave a comment:


  • Brian Bushnell
    replied
    You can postfilter it afterward:

    reformat.sh in=reads.fq out=filtered.fq minlength=202 maxlength=202

    But, bear in mind that you may be losing important data by doing so. For example, there could be a whole bunch of sequences that are 199bp long for some real biological reason (rather than problems with library prep). So, just be cautious.

    Leave a comment:


  • lcmb
    replied
    Thank you both for your help! Do you have any suggestions on how to set optional parameters to ensure that my merged file only contains sequences of my intended/designed insert size?

    Leave a comment:


  • lcmb
    replied
    I am using:

    Code:
    bbmerge.sh in1=<read1> in2=<read2> out=<mergedreads> outu1=<unmerged1> outu2=<unmerged2> mismatches=0

    Leave a comment:


  • Brian Bushnell
    replied
    In this case it looks like BBMerge's output is correct... as GenoMax said, you have adapter sequences indicating short inserts. Specifically, read1's first 126 bases exactly match BBMerge's output, and subsequently there is:
    AGATCGGAAGAGCACACGTCTGAACTCCAGTCACTGACCAATGTCGTATGCCGTCTTCTGCTTG
    ...a known Illumina adapter sequence, followed by AAAAAA which is common after the Illumina machine runs of the end of the adapter sequence and has no signal.

    No matter what you expect/design your insert size to be, shorter fragments will almost always be present.

    Leave a comment:


  • GenoMax
    replied
    Can you provide the exact command you are using? Your reads do have truseq adapters in them so the inserts may be smaller than you expected.

    Code:
    @M02344:9008:000000000-AJ1PF:1:1110:28244:16073 1:N:0:TGACCAAT+ATAGAGGC
    TCTGCCGTCATCGACTTCGAAGGTTCGAATCCTTCCCCTCTAACCACGGCCGAAATTCAATACCCGGATCAAGCTCAATTCGGGTCGAGGTCGGGCCGCGTTGCTGGCGTTTTTCCATAGGCTCCGA[COLOR="Red"]GATCGGAAGAGCACACGTCTGAACTCCAGTCACTGACCAATGTCGTATGCCGTCTTCTGCTTG[/COLOR]AAAAAAAATAAGTGGTGCGAAGAGAGCCTGTGGCCAACCTCATATGCGTGGAGATGTCTCG
    Last edited by GenoMax; 05-05-2016, 11:52 AM.

    Leave a comment:


  • lcmb
    replied
    Truncated merges

    Hello,

    I have noticed that some of my merged sequences, after using BBMerge, are truncated. My R1/R2 input sequences are 251 bp long (paired-end 250 bp sequencing). The overlap/insert, which I expect to be merged from the R1/R2 files, is 202 bp long. Although many of my merged sequences are the expected 202 bp long, a handful are much shorter.

    The only optional parameter I have changed is setting mismatches=0, as I do not want any discrepancies in the overlap.

    Here is an example:
    Code:
    Raw Data: R1 and R2 files (fastq.gz)
    R1 File: 251 nucleotides
    @M02344:9008:000000000-AJ1PF:1:1110:28244:16073 1:N:0:TGACCAAT+ATAGAGGC
    TCTGCCGTCATCGACTTCGAAGGTTCGAATCCTTCCCCTCTAACCACGGCCGAAATTCAATACCCGGATCAAGCTCAATTCGGGTCGAGGTCGGGCCGCGTTGCTGGCGTTTTTCCATAGGCTCCGAGATCGGAAGAGCACACGTCTGAACTCCAGTCACTGACCAATGTCGTATGCCGTCTTCTGCTTGAAAAAAAATAAGTGGTGCGAAGAGAGCCTGTGGCCAACCTCATATGCGTGGAGATGTCTCG
    
    R2: 251 nucleotides
    @M02344:9008:000000000-AJ1PF:1:1110:28244:16073 2:N:0:TGACCAAT+ATAGAGGC
    CGGAGCCTATGGAAAAACGCCAGCAACGCGGCCCGACCTCGACCCGAATTGAGCTTGATCCGGGTATTGAATTTCGGCCGTGGTTAGAGGGGAAGGATTCGAACCTTCGAAGTCGATGACGGCAGAAGATCGGAAGAGCGTCGTGTAGGGAAGGAGTGGGCCTAGATGTGTGGGTCGCGGTGGTGGCCGGATCGATGAAGAAAGTCTGGTGCTGGTGTGTGTGACGCCAGGGCGTCAGCAGTGGTGATGTG
    
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    
    BBMerge Output: 126 nucleotides
    @M02344:9008:000000000-AJ1PF:1:1110:28244:16073 1:N:0:TGACCAAT+ATAGAGGC
    TCTGCCGTCATCGACTTCGAAGGTTCGAATCCTTCCCCTCTAACCACGGCCGAAATTCAATACCCGGATCAAGCTCAATTCGGGTCGAGGTCGGGCCGCGTTGCTGGCGTTTTTCCATAGGCTCCG
    
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    Thank you for your help!

    Leave a comment:


  • Brian Bushnell
    replied
    Hi Luc,

    Both of them apply to both reads. Let's say that you have 100bp reads in and you want to trim them to 70bp by trimming the right end. You can do that in two ways - either "ftr2=30" which trims the last 30bp, or "ftr=69" which trims all bases after position 69 (zero-based). The reason both options are present is because they behave differently when reads have variable lengths.

    Leave a comment:


  • luc
    replied
    What is the difference/ between ftr and ftr2?
    Does ftr apply to the forward read and ftr2 to the reverse read?

    Thanks in advance!

    forcetrimright=0 (ftr) If nonzero, trim right bases of the read
    after this position (exclusive, 0-based).
    forcetrimright2=0 (ftr2) If positive, trim this many bases on the right end.

    Leave a comment:


  • rc630
    replied
    Originally posted by Brian Bushnell View Post
    Hmmm, that's very strange. They look fine to me. For some reason it thinks you set the max number of reads to zero. Can you try adding the flag "reads=-1"?
    Thank you very much, it worked fine with the flag added

    Leave a comment:


  • Brian Bushnell
    replied
    Hmmm, that's very strange. They look fine to me. For some reason it thinks you set the max number of reads to zero. Can you try adding the flag "reads=-1"?

    Leave a 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

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 10-28-2026, 09:57 AM
0 responses
22 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-28-2026, 09:51 AM
0 responses
14 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-22-2026, 11:13 AM
0 responses
67 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-22-2026, 10:48 AM
0 responses
47 views
0 reactions
Last Post SEQadmin2  
Working...