Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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


    • #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

      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM
      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-25-2024, 11:49 AM
      0 responses
      19 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-24-2024, 08:47 AM
      0 responses
      18 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      62 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      60 views
      0 likes
      Last Post seqadmin  
      Working...
      X