featureCounts: 0% assignment

940 views
Skip to first unread message

Jason Dartevelle

unread,
Dec 15, 2015, 10:59:41 PM12/15/15
to Subread
Hello,

I'm using featureCount to compute counts of a reference genes. This process can achieve "successfully", but I always get as result 0% of assignment and it doesn't run for a long time. 
According to I use the following annotation file (http://genomes.cribi.unipd.it/DATA/V2/V2/lncRNA/lncIntergenic.gtf), can you look at my results below please?

Thank you,
Jason



subread-align -i ~/Desktop/ref_gene/my_good_index -r sc4-1_GATCAG_L003_R1_002.fastq.gz -R sc4-1_GATCAG_L003_R2_002.fastq.gz -o res_align.bam -t 0



        ==========     _____  _    _ ____  _____  ______          _____  
             =====         / ____  |  |   |  |  _ \|  __ \|  ____|   /\   |  __ \ 
                =====      | (___   |  |   |  | |_) | |__) | |__     /  \  | |  | |
                   ====      \___ \  |  |   |  |  _ <|  _  /|  __|   / /\ \ | |  | |
                    ====    ____)   |  |__|  | |_) | | \ \| |____ / ____ \| |__| |
         ==========   |_____/ \____/ |____/|_|  \_\______/_/    \_\_____/
  v1.5.0

//========================== subread-align setting ===========================\\
||                                                                            ||
||           Function : Read alignment (RNA-Seq)                              ||
||            Threads : 1                                                     ||
||       Input file 1 : sc4-1_GATCAG_L003_R1_002.fastq.gz                     ||
||       Input file 2 : sc4-1_GATCAG_L003_R2_002.fastq.gz                     ||
||        Output file : res_align.bam (BAM)                                   ||
||         Index name : /home/jason/Desktop/ref_gene/my_good_index            ||
||       Phred offset : 33                                                    ||
||                                                                            ||
||       All subreads : 10                                                    ||
||    Min read1 votes : 3                                                     ||
||    Min read2 votes : 1                                                     ||
||  Max fragment size : 600                                                   ||
||  Min fragment size : 50                                                    ||
||                                                                            ||
||   Allowed mismatch : 3 bases                                               ||
||         Max indels : 5                                                     ||
||  # of Best mapping : 1                                                     ||
||     Unique mapping : no                                                    ||
||   Hamming distance : no                                                    ||
||     Quality scores : no                                                    ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//

//====================== Running (14-Dec-2015 15:55:26) ======================\\
||                                                                            ||
|| The input file contains base space reads.                                  ||
|| The range of Phred scores observed in the data is [2,41]                   ||
|| Load the 1-th index block...                                               ||
|| Map fragments...                                                           ||
||    0% completed, 0.8 mins elapsed, total=4052k frags, rate=0.6k/s          ||
||    6% completed, 1.8 mins elapsed, total=4010k frags, rate=3.8k/s          ||
||   13% completed, 2.7 mins elapsed, total=4004k frags, rate=4.4k/s          ||
||   20% completed, 3.6 mins elapsed, total=3994k frags, rate=4.6k/s          ||
||   27% completed, 4.4 mins elapsed, total=3981k frags, rate=4.8k/s          ||
||   33% completed, 5.9 mins elapsed, total=3990k frags, rate=4.3k/s          ||
||   40% completed, 6.8 mins elapsed, total=3998k frags, rate=4.3k/s          ||
||   46% completed, 7.7 mins elapsed, total=4002k frags, rate=4.4k/s          ||
||   53% completed, 9.2 mins elapsed, total=4003k frags, rate=4.2k/s          ||
|| Finish the 3495253 fragments...                                            ||
||   61% completed,  10 mins elapsed, total=4003k frags, rate=3.8k/s          ||
||   64% completed,  10 mins elapsed, total=4003k frags, rate=3.9k/s          ||
||   66% completed,  11 mins elapsed, total=4003k frags, rate=4.0k/s          ||
||   69% completed,  11 mins elapsed, total=4003k frags, rate=4.1k/s          ||
||   72% completed,  11 mins elapsed, total=4003k frags, rate=4.2k/s          ||
||   75% completed,  11 mins elapsed, total=4003k frags, rate=4.2k/s          ||
||   78% completed,  12 mins elapsed, total=4003k frags, rate=4.3k/s          ||
||   81% completed,  12 mins elapsed, total=4003k frags, rate=4.4k/s          ||
||   84% completed,  12 mins elapsed, total=4003k frags, rate=4.5k/s          ||
|| Map fragments...                                                           ||
||   87% completed,  12 mins elapsed, total=4003k frags, rate=4.8k/s          ||
||   94% completed,  13 mins elapsed, total=4000k frags, rate=4.9k/s          ||
|| Finish the 504747 fragments...                                             ||
||   96% completed,  14 mins elapsed, total=4000k frags, rate=4.3k/s          ||
||   96% completed,  14 mins elapsed, total=4000k frags, rate=4.3k/s          ||
||   97% completed,  14 mins elapsed, total=4000k frags, rate=4.4k/s          ||
||   97% completed,  14 mins elapsed, total=4000k frags, rate=4.4k/s          ||
||   97% completed,  14 mins elapsed, total=4000k frags, rate=4.4k/s          ||
||   98% completed,  14 mins elapsed, total=4000k frags, rate=4.4k/s          ||
||   98% completed,  14 mins elapsed, total=4000k frags, rate=4.4k/s          ||
||   99% completed,  15 mins elapsed, total=4000k frags, rate=4.4k/s          ||
||   99% completed,  15 mins elapsed, total=4000k frags, rate=4.4k/s          ||
||                                                                            ||
||                          Completed successfully.                           ||
||                                                                            ||
\\============================================================================//

//================================= Summary ==================================\\
||                                                                            ||
||          Processed : 4000000 fragments                                     ||
||             Mapped : 3684803 fragments (92.1%)                             ||
||   Correctly paired : 3161855 fragments                                     ||
||             Indels : 17150                                                 ||
||                                                                            ||
||       Running time : 15.4 minutes                                          ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//


featureCounts -p -a ~/Desktop/gtf_files/lncIntronic.gtf -t exon -g gene_id -o counts.txt res_align.bam



        ==========     _____ _    _ ____  _____  ______          _____  
        =====         / ____| |  | |  _ \|  __ \|  ____|   /\   |  __ \ 
          =====      | (___ | |  | | |_) | |__) | |__     /  \  | |  | |
            ====      \___ \| |  | |  _ <|  _  /|  __|   / /\ \ | |  | |
              ====    ____) | |__| | |_) | | \ \| |____ / ____ \| |__| |
        ==========   |_____/ \____/|____/|_|  \_\______/_/    \_\_____/
  v1.5.0

//========================== featureCounts setting ===========================\\
||                                                                            ||
||             Input files : 1 BAM file                                       ||
||                           P res_align.bam                                  ||
||                                                                            ||
||             Output file : counts.txt                                       ||
||             Annotations : /home/jason/Desktop/gtf_files/lncIntronic.gt ... ||
||                                                                            ||
||                 Threads : 1                                                ||
||                   Level : meta-feature level                               ||
||              Paired-end : yes                                              ||
||         Strand specific : no                                               ||
||      Multimapping reads : not counted                                      ||
|| Multi-overlapping reads : not counted                                      ||
||       Read orientations : fr                                               ||
||                                                                            ||
||          Chimeric reads : counted                                          ||
||        Both ends mapped : not required                                     ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//

//================================= Running ==================================\\
||                                                                            ||
|| Load annotation file /home/jason/Desktop/gtf_files/lncIntronic.gtf ...     ||
||    Features : 533                                                          ||
||    Meta-features : 526                                                     ||
||    Chromosomes/contigs : 27                                                ||
||                                                                            ||
|| Process BAM file res_align.bam...                                          ||
||    Paired-end reads are included.                                          ||
||    Assign fragments (read pairs) to features...                            ||
||    Total fragments : 4307095                                               ||
||    Successfully assigned fragments : 0 (0.0%)                              ||
||    Running time : 0.48 minutes                                             ||
||                                                                            ||
||                         Read assignment finished.                          ||
||                                                                            ||
\\===================== http://subread.sourceforge.net/ ======================//

Wei Shi

unread,
Dec 16, 2015, 5:31:22 PM12/16/15
to Subread
Hi Jason,

The featureCounts program also outputs a summary file (should be called 'counts.txt.summary' for your data), which includes summary of read counting results. Could you please provide the content of that file?

Also, featureCounts only identified 533 exons from your provided annotation file ('lncIntronic.gtf"). However I downloaded this file using your provided link and found that there are 2372 exons included it. Did you modify the annotation file?

Best wishes,

Wei

Jason Dartevelle

unread,
Dec 17, 2015, 9:55:11 AM12/17/15
to Subread
Hello,

I attached the summary file bellow. 
No, I didn't modify the file before to use. By the way, I'm working in a virtual machine. Perhaps, this one is not powerful enough to achieve it.

Best,
Jason

Summary file;

Status  res_align.bam
Assigned        0
Unassigned_Ambiguity    0
Unassigned_MultiMapping 0
Unassigned_NoFeatures   3991898
Unassigned_Unmapped     315197
Unassigned_MappingQuality       0
Unassigned_FragmentLength       0
Unassigned_Chimera      0
Unassigned_Secondary    0
Unassigned_Nonjunction  0
Unassigned_Duplicate    0



Jason Dartevelle

unread,
Dec 17, 2015, 10:02:25 AM12/17/15
to Subread
I made a mistake in the url. The annotation file is available here: http://genomes.cribi.unipd.it/DATA/V2/V2/lncRNA/lncIntronic.gtf . 
The outputs I published correspond well to the file "lncIntronic.gtf".
Thank you for your help.

Best,
Jason

Wei Shi

unread,
Jan 3, 2016, 8:08:27 PM1/3/16
to Subread
Hi Jason,

The summarization summary shows that no mapped reads were found to overlap with any genes included in your annotation. Do the chromosome names in your annotation match those in your reference genome data?

Cheers,
Wei

Jason Dartevelle

unread,
Jan 14, 2016, 8:21:14 AM1/14/16
to Subread
Hello,

In fact, there is a mismatching between the chromosome names in the different files. Does exist a way to fix this problem?

Cheers,
Jason

Wei Shi

unread,
Jan 14, 2016, 6:23:28 PM1/14/16
to Subread
Take a look at the '-A' option, which allows you to provide alias chr names.

Cheers,
Wei

Jason Dartevelle

unread,
Jan 16, 2016, 10:14:09 AM1/16/16
to Subread
Hello,

It works well. Thank you very much!

Cheers,
Jason
Reply all
Reply to author
Forward
0 new messages