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

BioNanoAnalyst - KeyError #2

Open
AlanTracey99 opened this issue Oct 16, 2017 · 4 comments
Open

BioNanoAnalyst - KeyError #2

AlanTracey99 opened this issue Oct 16, 2017 · 4 comments

Comments

@AlanTracey99
Copy link

I get the following error a couple of minutes after setting BioNanoAnalyst running. It seems to be due to be something to do with contig IDs.

Process Process-31:
Traceback (most recent call last):
File "/software/pathogen/external/apps/usr/local/Python-2.7.13/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/software/pathogen/external/apps/usr/local/Python-2.7.13/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/software/pathogen/external/apps/usr/local/BioNanoAnalyst-20170928/scripts/Analysis.py", line 345, in alignedInf
name = self.ref_id[RefCtgId]
KeyError: 67

Here are my 13 scaffold fasta headers:

Super-Scaffold_1
Super-Scaffold_2
Super-Scaffold_3
Super-Scaffold_4
Super-Scaffold_5
Super-Scaffold_7
Super-Scaffold_10
Super-Scaffold_11
Super-Scaffold_12
Super-Scaffold_67
Super-Scaffold_70
Super-Scaffold_72
Super-Scaffold_133

And the first 3 columns of my xmap file:

#f int int
1 1 1
2 2 2
3 3 3
4 4 4
5 69 4
6 5 5
7 9 7
8 7 7
9 8 7
10 10 10
11 11 11
12 136 12
13 12 12
14 67 67
15 70 70
16 202 70
17 72 72
18 133 133

@yyx8671
Copy link
Contributor

yyx8671 commented Oct 19, 2017

Hi @AlanTracey99,

It seems your 'RefContigID' in your xmap file is the super_scaffold ID. To my understanding, the 'RefContigID' is calculated from 1 to the last header, for instance Super-Scaffold_1 should be RefContigID 1 and Super-Scaffold_133 should be RefContigID 13. In your case, they don't math with each other and error raised.

@AlanTracey99
Copy link
Author

AlanTracey99 commented Oct 19, 2017 via email

@yyx8671
Copy link
Contributor

yyx8671 commented Oct 19, 2017

Hi Alan,
I'm not sure how did you get your xmap file. If you don't mind, you may try our another script: https://github.com/appliedbioinformatics/runBNG to regenerate your xmap file and try BioNanoAnalyst again.

We have also provided a test file and you can have a test.

Cheers,
Andy

@AlanTracey99
Copy link
Author

AlanTracey99 commented Oct 20, 2017 via email

mp15 pushed a commit to mp15/BioNanoAnalyst that referenced this issue Oct 30, 2020
…-box-fixes

Fixes to dialog window returned file paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants