Hello,
When I run featureCounts, it gives an error after loading GTF file and showing number of chromosomes.
featureCounts -T 3 -t exon -g gene_id -a "/mnt/c/Users/user/Desktop/STEMCELL/RNA_3/References/Homo_sapiens.GRCh38.92.gtf" -o "/mnt/c/Users/user/Desktop/STEMCELL/RNA_3/Output_Files/SRR1639080_readCounts.txt" "/mnt/c/Users/user/Desktop/STEMCELL/RNA_3/Output_Files/SRR1639080_sorted.bam"
Output is below:
========== _____ _ _ ____ _____ ______ _____
===== / ____| | | | _ \| __ \| ____| /\ | __ \
===== | (___ | | | | |_) | |__) | |__ / \ | | | |
==== \___ \| | | | _ <| _ /| __| / /\ \ | | | |
==== ____) | |__| | |_) | | \ \| |____ / ____ \| |__| |
========== |_____/ \____/|____/|_| \_\______/_/ \_\_____/
v1.6.0
//========================== featureCounts setting ===========================\\
|| ||
|| Input files : 1 BAM file ||
|| S /mnt/c/Users/user/Desktop/STEMCELL/RNA_3/O ... ||
|| ||
|| Output file : /mnt/c/Users/user/Desktop/STEMCELL/RNA_3/Out ... ||
|| Summary : /mnt/c/Users/user/Desktop/STEMCELL/RNA_3/Out ... ||
|| Annotation : /mnt/c/Users/user/Desktop/STEMCELL/RNA_3/Ref ... ||
|| Dir for temp files : /mnt/c/Users/user/Desktop/STEMCELL/RNA_3/Out ... ||
|| ||
|| Threads : 3 ||
|| Level : meta-feature level ||
|| Paired-end : no ||
|| Strand specific : no ||
|| Multimapping reads : not counted ||
|| Multi-overlapping reads : not counted ||
|| Min overlapping bases : 1 ||
|| ||
\\===================== http://subread.sourceforge.net/ ======================//
//================================= Running ==================================\\
|| ||
|| Load annotation file /mnt/c/Users/user/Desktop/STEMCELL/RNA_3/Referenc ... ||
|| Features : 1237303 ||
|| Meta-features : 58395 ||
|| Chromosomes/contigs : 47 ||
|| ||
Segmentation fault (core dumped)
I couldn't find anything specific for featureCounts. But in the posts, it is generally said that "Segmentation fault" means that you tried to access memory that you do not have access to. I couldn't resolve how I can resolve it.
Any ideas or suggestions? Thanks...
I've occasionally run into segfaults with featureCounts and found that switching versions (typically to the newest one) tends to resolve this.
Switching with 1.6.2 did not resolve the problem
If anyone is using multiple BAM files with featureCounts and gets the exact same error, it's because of the multicore function (-T). Remove -T option and it will work like a charm with multiple BAM files.