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

--n_genomes not working #133

Closed
HadrienG opened this issue Nov 21, 2019 · 2 comments
Closed

--n_genomes not working #133

HadrienG opened this issue Nov 21, 2019 · 2 comments
Assignees
Labels

Comments

@HadrienG
Copy link
Owner

HadrienG commented Nov 21, 2019

the --n_genomes/-u option supposed to pick random genomes from fasta files seems broken:

iss generate --genomes SRS121011.fasta --n_genomes 5 --model novaseq --output novaseq_reads
INFO:iss.app:Starting iss generate
INFO:iss.app:Using kde ErrorModel
INFO:iss.util:Stitching input files together
INFO:iss.app:Using lognormal abundance distribution
INFO:iss.app:Using 2 cpus for read generation
INFO:iss.app:Generating 1000000 reads
Traceback (most recent call last):
  File "/home/user/.local/bin/iss", line 11, in <module>
    sys.exit(main())
  File "/home/user/.local/lib/python3.6/site-packages/iss/app.py", line 542, in main
    args.func(args)
  File "/home/user/.local/lib/python3.6/site-packages/iss/app.py", line 186, in generate_reads
    n = args.n_genomes[0][0]
TypeError: 'int' object is not subscriptable
@HadrienG HadrienG self-assigned this Nov 21, 2019
@HadrienG HadrienG added the bug label Nov 21, 2019
HadrienG pushed a commit that referenced this issue Nov 21, 2019
HadrienG added a commit that referenced this issue Nov 21, 2019
@ma-celik
Copy link

After making the suggested changes on app.py it works but this time abundance.txt screws up. It appears like this, the list goes on
iss generate --genomes splitted.fasta --n_genomes 5 --model miseq --output hiseq_reads

GY193009.2153721.2155249 1.9566030924901097e-05
GY194061.5315.6843 4.148060404885818e-05
AC201870.96424.97946 0.00012397963259014452
GY222292.1.1479 2.1930273012647295e-05
GY230930.2147890.2149418 3.6387358452694063e-05
GY231983.4572.6100 0.0005489518255281374
AC091599.220.1669 5.264607562769679e-05
GY314192.4.1468 2.3352921261940462e-05
GY329294.54244.55763 8.405104955045853e-05
CT476836.21467.23325 6.149654274016014e-05
.
.
.

@HadrienG
Copy link
Owner Author

Should be fixed with version 1.4.5 (available via conda any moment now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants