Skip to content

KeyError: 'rRNA' during processsamples.py #22

@abakirbas

Description

@abakirbas

Hi, I am a plant biologist interested in your tool tRAX. I have managed to build a database for the model plant species Arabidopsis thaliana and then move to the sample processing step. I get most of the plots but at some point the script ends with the following error:

Traceback (most recent call last):
File "/opt/trax/processsamples.py", line 549, in
gettraxqc(samplefilename, trnainfo, expinfo, tgirtmode = nofrag)
File "/opt/trax/processsamples.py", line 241, in gettraxqc
traxqc.main(samplefile=samplefile,databasename=trnainfo.dbname,experimentname=expinfo.expname,tgirt = tgirtmode, output=expinfo.qaoutputname)
File "/opt/trax/traxqc.py", line 724, in main
typeresults = checkreadtypes(samplename, sampleinfo, tgirtmode)
File "/opt/trax/traxqc.py", line 487, in checkreadtypes
rrnapercent = {currsample : typecounts.getrrnapercent(currsample) for currsample in samples}
File "/opt/trax/traxqc.py", line 487, in
rrnapercent = {currsample : typecounts.getrrnapercent(currsample) for currsample in samples}
File "/opt/trax/traxqc.py", line 366, in getrrnapercent
return self.typecounts[sample]["rRNA"] / (1.*self.gettotal(sample))
KeyError: 'rRNA'

I can see in my non-tRNA annotation file rRNAs are successfully extracted from Ensembl. But when I look at my -expname_typecounts.pdf file, the types are only shown as "other" and "tRNA" (see attached figure). and I don't get delivered some other plots as well such as scatter plots of the comparison data.

p.s. - I am running tRAX on an HPC environment as a singularity image.
typecounts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions