Closed christianddietrich closed 5 years ago
Hi there, thanks for the report and sorry for the inconvenience. It looks like a mistake from my side. Could you share the .config
file that should have been generated in the database folder? That would give me the details I need to fix this :)
Hi there, thanks for the report and sorry for the inconvenience. It looks like a mistake from my side. Could you share the
.config
file that should have been generated in the database folder? That would give me the details I need to fix this :)
That was quick.
.config:
[DATABASE]
name = hg19_chr1
refgenome = hg19
[OLIGOS]
sequence = False
min_dist = 11
min_length = 39
max_length = 39
overlaps = False
[SOURCE]
bed = /data/ifish/iFISH.40mer.hg19.chr1
enforced2bed3 = False
outdirectory = /data/ifish/static/db/hg19_chr1
.log:
2019-07-24 13:32:28,404 root INFO Buffering bed-like file...
2019-07-24 13:32:28,736 root INFO Writing database...
2019-07-24 13:34:21,714 root INFO Sorting oligos...
2019-07-24 13:34:41,331 root INFO Generating config file...
2019-07-24 13:34:41,332 root INFO Created database "hg19_chr1".
Hi, thanks for the .config
file! I have released the new v2.0.3.post1
version that should patch this up. Depending on how you installed the package, you can either pull from the repo or install from pypi with pip. You might also want to run pip with the --no-cache-dir
option to avoid issues with cached package indexes. Let me know if it works now and I will close this ticket. :)
Hi, thanks for the
.config
file! I have released the newv2.0.3.post1
version that should patch this up. Depending on how you installed the package, you can either pull from the repo or install from pypi with pip. You might also want to run pip with the--no-cache-dir
option to avoid issues with cached package indexes. Let me know if it works now and I will close this ticket. :)
Hi,
With the new version it works fine, thanks!
Maybe you can tell me how can I add multiple chromosomes to a database? (As you do it on http://www.ifish4u.org/probe-design/)
(ifishvenv) ifish@localhost:~$ ifpd_mkdb -O /data/ifish/static/db/hg19_chr1 /data/ifish/iFISH.40mer.hg19.chr2 hg19 hg19_chr1
Traceback (most recent call last):
File "/data/ifish/ifishvenv/bin/ifpd_mkdb", line 153, in <module>
assert not os.path.isdir(args.O), assert_msg
AssertionError: output folder already exists: "/data/ifish/static/db/hg19_chr1"
Thanks!
Glad to hear it works now, sorry again for the inconvenience.
To generate a database with multiple chromosomes you should give a bed file with oligos from multiple chromosomes as input to the ifpd_mkdb
script. The script then takes care of splitting the inpu accordingly to the ifpd
format.
Basically, if you go here and download the hg19
file, you will see that that bed file contains multiple chromosomes. You can then rebuild the database locally from that file.
If using all chromosomes is overkill or, for any reason, you prefer to not do it and you would like to have only a few, you can always do one of the following:
cat chr1 chr2 chrX > merged.bed
or similar.And then run ifpd_mkdb
.
Hope this helps. I'll close the thread but feel free to comment here if in need of help on this topic. :)
Describe the bug After a database has been added, ifish (ifpd_serve) only responds with "ERROR 500: nothing here, sorry :(". If the database folder is empty everything works fine.
To Reproduce
Expected behavior HTTP 200 / webinterface works
Desktop (please complete the following information):
Additional context
Thanks for your help! It may be that I am just doing something wrong, I have tried to stick to the documentation.