-
Notifications
You must be signed in to change notification settings - Fork 16
Unable to run NEAT examples in the README #89
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
Comments
Apologies, this is a bug we're currently working through. |
Thank you for the fast reply! Looking forward to reruning it once this is fixed. |
can be 'skipped' temporarily adding
to the config.yml also there is a typo in the README for the Targeted region simulation
should be
however it looks like NEAT will generate data for all the reference, not only for the bed file, am I correct? |
if I set the reference to a FASTA file for the region in the bed file, it will run but I will get another error
|
By default the variants will be concentrated in the bed file areas, but there will still be some in the background (as well as sequencing errors). You can use the parameter off_target_scalar to adjust this. If you want no variants outside the bed, then you can set this to 0.0.
Yeah, same, that's why this bug fix is taking me a minute. |
In the mean time you can try version 3.2. Apologies for the broken release... |
ok, thanks, just for your info, I manage to skip the pervious error adding
to the config.yml but then I get a different error,
input_read_length length is 162 but quality_score_probabilities length is 151 |
Yeah, it's related to the previous error. I have a bug in how NEAT is calculating quality scores for deletions. I will post a fix as soon as I can.
…-Josh
________________________________
From: Alberto Labarga ***@***.***>
Sent: Wednesday, November 1, 2023 2:08 AM
To: ncsa/NEAT ***@***.***>
Cc: Allen, Josh ***@***.***>; Comment ***@***.***>
Subject: Re: [ncsa/NEAT] Unable to run NEAT examples in the README (Issue #89)
ok, thanks, just for your info, I manage to skip the pervious error adding
avg_seq_error: 0
to the config.yml but then I get a different error,
2023-10-31 18:53:43,982:ERROR:neat:read-simulator failed, see the traceback below
Traceback (most recent call last):
File "/home/alabarga/BSC/code/synthetic-genomes/.venv/lib/python3.10/site-packages/neat/cli/cli.py", line 133, in main
cmd(args)
File "/home/alabarga/BSC/code/synthetic-genomes/.venv/lib/python3.10/site-packages/neat/cli/commands/read_simulator.py", line 47, in execute
read_simulator_runner(arguments.config, arguments.output)
File "/home/alabarga/BSC/code/synthetic-genomes/.venv/lib/python3.10/site-packages/neat/read_simulator/runner.py", line 353, in read_simulator_runner
generate_reads(local_reference,
File "/home/alabarga/BSC/code/synthetic-genomes/.venv/lib/python3.10/site-packages/neat/read_simulator/utils/generate_reads.py", line 589, in generate_reads
read1.finalize_read_and_write(error_model_1, fq1, options.produce_fastq)
File "/home/alabarga/BSC/code/synthetic-genomes/.venv/lib/python3.10/site-packages/neat/read_simulator/utils/read.py", line 278, in finalize_read_and_write
self.quality_array = err_model.get_quality_scores(len(self.reference_segment))
File "/home/alabarga/BSC/code/synthetic-genomes/.venv/lib/python3.10/site-packages/neat/models/models.py", line 498, in get_quality_scores
self.rng.normal(self.quality_score_probabilities[i][0],
IndexError: index 151 is out of bounds for axis 0 with size 151
input_read_length length is 162 but quality_score_probabilities length is 151
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/ncsa/NEAT/issues/89*issuecomment-1788512086__;Iw!!DZ3fjg!_NZriir0MUnOupEmzTpjWhYKjSEUwOd-CWQIvgjgn5Z936g8vXY2aUv90j6xmlsqVpq21JdRjs2G8nTBecO-5naaaR760Q$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AGMI7237NGIWB7KA2TML3GLYCHYO3AVCNFSM6AAAAAA6XRJ3TKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBYGUYTEMBYGY__;!!DZ3fjg!_NZriir0MUnOupEmzTpjWhYKjSEUwOd-CWQIvgjgn5Z936g8vXY2aUv90j6xmlsqVpq21JdRjs2G8nTBecO-5nbA8EjCog$>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I pushed a fix to the Develop branch. If you have time, can you test your code on that branch? |
This should now be fixed on the main branch an in the current release. Please check out the newest version and open a new ticket if you have any further issues. |
Describe the bug
Running the 'whole genome simulation' in the readme herehere , this error arisen:
raise ValueError("Bad mode %r" % mode)
ValueError: Bad mode 'xt'
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: