Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • rz566
    Junior Member
    • Aug 2013
    • 4

    Python related problem

    Hi guys,

    I am having a problem with the extraction part. Here is the output from extraction.err

    2013-08-16 13:20:23,179 [INFO] Running
    2013-08-16 13:20:23,179 [INFO] Opening Gap Objects
    2013-08-16 13:20:23,182 [INFO] Loading Fasta Files
    2013-08-16 13:20:36,174 [INFO] Loading References
    2013-08-16 13:20:37,484 [INFO] Extracting Reads
    Traceback (most recent call last):
    File "~/assembly/assembler/PBJelly/Extraction.py", line 250, in <module>
    me.run()
    File "~/assembly/assembler/PBJelly/Extraction.py", line 206, in run
    self.extractReads()
    File "~/assembly/assembler/PBJelly/Extraction.py", line 117, in extractReads
    self.allFasta[name][start:end] + "\n")
    File "~/assembly/assembler/PBJelly/Extraction.py", line 221, in __getitem__
    fn, start, numLines = self.indices[key]
    KeyError: u'm130626_024929_42146_c100536682550000001823080011101390_s1_p0/59685/0_4740'


    I have tried the test data (lambdaExample) and it worked fine. The KeyError message indicates that the program is unable to find the key in the .gapCans file but when I check the file, it is there!

    I already check my Pacbio reads file and it looks OK. Can somebody tell me if I am doing it wrongly?
  • arkilis
    Senior Member
    • Jul 2013
    • 119

    #2
    fn, start, numLines = self.indices[key] is where the problem resides.

    Seems like [key] here is not right. Cant tell more without your dataset.

    Comment

    • rz566
      Junior Member
      • Aug 2013
      • 4

      #3
      Originally posted by arkilis View Post
      fn, start, numLines = self.indices[key] is where the problem resides.

      Seems like [key] here is not right. Cant tell more without your dataset.
      Thanks! I already found out the problem.

      The error occurred because it was expecting a key "m130626_024929_42146_c100536682550000001823080011101390_s1_p0/59685/0_4740"

      but in my PacBio fasta/qual file, each reads had a RQ value beside it.

      m130626_024929_42146_c100536682550000001823080011101390_s1_p0/59685/0_4740 RQ=0.85

      Once I removed the RQ value from the pacbio fasta/qual, it worked perfectly.

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by SEQadmin2


        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


        Here are nine questions we think about, in roughly the order they matter, before...
        06-18-2026, 07:11 AM
      • SEQadmin2
        From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
        by SEQadmin2


        Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


        The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
        ...
        06-02-2026, 10:05 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 06-17-2026, 06:09 AM
      0 responses
      30 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-09-2026, 11:58 AM
      0 responses
      44 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      51 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      51 views
      0 reactions
      Last Post SEQadmin2  
      Working...