Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mlacencio
    Member
    • Oct 2013
    • 13

    #1

    RNAseq pipeline (beginner level question): STAR alignment


    Hello everyone!

    After running the following command (via Snakemake):

    STAR --genomeDir refs/STARindex --readFilesIn processing/transcriptomics/merged/S2_R1.fastq.gz processing/transcriptomics/merged/S2_R2.fastq.gz --readFilesCommand zcat --runThreadN 8 --outSAMtype BAM Unsorted --outFileNamePrefix processing/transcriptomics/alignment/S2/S2. --outFilterMismatchNmax 999 --outFilterMismatchNoverReadLmax 0.04 --alignIntronMin 20 --alignIntronMax 1000000 --alignMatesGapMax 1000000

    I got the following files:

    S2.Log.final.out
    S2.Log.out
    S2.Log.progress.out
    S2.SJ.out.tab
    S2.Aligned.out.bam
    S2.sorted.bam.tmp.0108.bam
    S2.sorted.bam.tmp.0107.bam
    S2.sorted.bam.tmp.0106.bam
    S2.sorted.bam.tmp.0105.bam
    S2.sorted.bam.tmp.0104.bam
    S2.sorted.bam.tmp.0103.bam
    S2.sorted.bam.tmp.0102.bam
    S2.sorted.bam.tmp.0101.bam
    S2.sorted.bam.tmp.0100.bam
    S2.sorted.bam.tmp.0099.bam
    S2.sorted.bam.tmp.0098.bam
    S2.sorted.bam.tmp.0065.bam
    S2.sorted.bam.tmp.0032.bam

    And the following warning:

    [bam_sort] -m setting (500 bytes) is less than the minimum required (1M).

    Trying to run with -m too small can lead to the creation of a very large number
    of temporary files. This may make sort fail due to it exceeding limits on the
    number of files it can have open at the same time.

    Please check your -m parameter. It should be an integer followed by one of the
    letters K (for kilobytes), M (megabytes) or G (gigabytes). You should ensure it
    is at least the minimum above, and much higher if you are sorting a large file


    Some questions:

    Should I update my command according to the warning and perform the alignment process all over again? Or can I just continue from here as I have already the file "S2.Aligned.out.bam"? What does the presence of these temporary files "S2.sorted.bam.tmp.nnnn.bam​" mean? How to proceed from here? This is the first time I run this pipeline!

    Thank you very much in advance,

    Marcio

    ​
  • fchatonnet
    Member
    • Sep 2014
    • 30

    #2
    Dear Marcio,

    it seems to me that the error you get comes from a samtools sort step done after the STAR alignment.
    From your STAR command, you'll get an "unsorted" bam file (sorted by read name), and I guess your SnakeMake pipeline does apply a samtools sort step afterwards. It all depends what you want to do, but you can probably change the settings of the samtools sort step in the pipeline script. If you need a coordinate sorted bam file, you can generate if from the S2.Aligned.out.bam by applying samtools sort directly on it. Use the -@ and -m options to specify the numbers of threads (CPUs) and memory used, respectively. Or don't specify the -m parameter and it'll use 768 Mb of RAM by default.

    Good luck!

    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-22-2026, 11:13 AM
    0 responses
    22 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    19 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    36 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    42 views
    0 reactions
    Last Post SEQadmin2  
    Working...