Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR pipeline failure when fields missing from NCBI genome report [v1.2.0] #126

Closed
tkchafin opened this issue Jul 5, 2024 · 0 comments · Fixed by #127
Closed

ERROR pipeline failure when fields missing from NCBI genome report [v1.2.0] #126

tkchafin opened this issue Jul 5, 2024 · 0 comments · Fixed by #127
Assignees
Labels
bug Something isn't working

Comments

@tkchafin
Copy link
Contributor

tkchafin commented Jul 5, 2024

Description of the bug

Key error from create_table.py:

Command error:
  Traceback (most recent call last):
    File "/lustre/scratch123/tol/teams/tolit/users/tolpipe/registered_workflows/prod/sanger-tol/genomenote-1.2.0/workflow/bin/create_table.py", line 182, in <module>
      sys.exit(main())
    File "/lustre/scratch123/tol/teams/tolit/users/tolpipe/registered_workflows/prod/sanger-tol/genomenote-1.2.0/workflow/bin/create_table.py", line 171, in main
      ncbi_stats(args.genome, args.sequence, writer)
    File "/lustre/scratch123/tol/teams/tolit/users/tolpipe/registered_workflows/prod/sanger-tol/genomenote-1.2.0/workflow/bin/create_table.py", line 81, in ncbi_stats
      writer.writerow(["Scaffolds", stats["number_of_scaffolds"]])
  KeyError: 'number_of_scaffolds'

Failure is on assembly GCA_963966575.1 which lacks several expected fields in assembly stats:

  "assemblyStats": {
    "contigL50": 32,
    "contigN50": 24519,
    "gcCount": "788905",
    "gcPercent": 38.0,
    "genomeCoverage": "46.0x",
    "numberOfComponentSequences": 87,
    "numberOfContigs": 87,
    "totalSequenceLength": "2065980",
    "totalUngappedLength": "2065980"
  },

Command used and terminal output

No response

Relevant files

No response

System information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
1 participant