Error in acquiring gene sequences

13 views
Skip to first unread message

Hannah Whitehurst

unread,
Jul 26, 2022, 2:32:21 PM7/26/22
to IMG User Forum
Hi,

I'm having trouble processing some bulk fna sequence request. I have submitted the genes of interest and used the default extraction of +/- 0bp upstream/downstream. However, I keep facing the same error: 
-----------------
object of type 'NoneType' has no len() 
07/26/2022 11:25:01 [IO.py:68] Started 07/26/2022 11:25:01 [Main2.py:137] Started 2: 07/26/2022 11:25:10 [Main2.py:218] object of type 'NoneType' has no len() 
07/26/2022 11:25:10 [Main2.py:219] Something awful happened! 

Traceback (most recent call last): File "/app/code/Services/messageSystem/Analysis/Main2.py", line 173, in main ExportFasta.getGeneCartSeq(dbh, dataJson, runningDir + filename) File "/app/code/Services/messageSystem/Analysis/Query/ExportFasta.py", line 591, in getGeneCartSeq data = getGenesFna(dbh, geneOids, up_stream, down_stream) File "/app/code/Services/messageSystem/Analysis/Query/ExportFasta.py", line 356, in getGenesFna seq = getIsolateGeneFnaSeq(dbh, geneId, up_stream, down_stream) File "/app/code/Services/messageSystem/Analysis/Query/ExportFasta.py", line 324, in getIsolateGeneFnaSeq if end_coord > len(seq): TypeError: object of type 'NoneType' has no len()
----------------------
It seems that the error is deriving from the end coord > length of the sequence? But I'm not sure why that would happen. If I increase/decrease the +/- bp upstream/downstream in small amounts, that also does not seem to help.

I tried to find an answer on the forum/website and didn't have any luck. Apologies if this is already covered somewhere - I'm probably overlooking something.

Any guidance appreciated. Thank you!

Hannah
Reply all
Reply to author
Forward
0 new messages