I still see this issue with 2.4.1.c. The problem appears to be generating a genome with a specific sjdbOverhang != 100 and then running alignment with on the fly annotations (or two-pass) and default sjdbOverhang. I.e. mostly a user error, but a warning message from STAR would be helpful:
Genome built (overhang=75):
../STAR-STAR_2.4.1c/bin/Linux_x86_64/STAR --runMode genomeGenerate --runThreadN 16 --genomeDir . --genomeFastaFiles UCSC/hg19/Sequence/WholeGenomeFasta/genome.fa --sjdbGTFfile UCSC/hg19/Annotation/Genes/genes.gtf --sjdbOverhang 75
* Successfull two-pass (explicit overhang=75; matched):
STAR-STAR_2.4.1c/bin/Linux_x86_64/STAR --genomeDir
genome.sj/ --readFilesCommand zcat --readFilesIn fastq/mRNA_UHR_S5_L001_R1_001.fastq.gz fastq/mRNA_UHR_S5_L001_R2_001.fastq.gz --twopassMode Basic --sjdbOverhang 75
* Error message (explicit overhang=100; mismatched):
STAR-STAR_2.4.1c/bin/Linux_x86_64/STAR --genomeDir
genome.sj/ --readFilesCommand zcat --readFilesIn fastq/mRNA_UHR_S5_L001_R1_001.fastq.gz fastq/mRNA_UHR_S5_L001_R2_001.fastq.gz --twopassMode Basic --sjdbOverhang 100
EXITING because of fatal PARAMETERS error: present --sjdbOverhang=100 is not equal to the value at the genome generation step =75
SOLUTION:
* No error message, hangs forever on 2nd mapping step: (default overhang):
STAR-STAR_2.4.1c/bin/Linux_x86_64/STAR --genomeDir
genome.sj/ --readFilesCommand zcat --readFilesIn fastq/mRNA_UHR_S5_L001_R1_001.fastq.gz fastq/mRNA_UHR_S5_L001_R2_001.fastq.gz --twopassMode Basic
May 05 10:38:07 ..... Started STAR run
May 05 10:38:07 ..... Loading genome
May 05 10:38:17 ..... Started 1st pass mapping
May 05 10:39:01 ..... Finished 1st pass mapping
May 05 10:39:03 ..... Inserting junctions into the genome indices
May 05 10:40:43 ..... Started mapping
[hangs with 100% CPU, no logging output]
I think this is independent of the fastq file, genome sequence and annotation used.
Felix