Closed wonitawowowo closed 1 year ago
Hi @wonitawowowo ,
Thanks for using the tool and for sharing the issue. Also, thanks for sharing it in a very detailed manner even with some possible solutions to it.
Tonight, I will generate a genome having numbers as IDs to try to replicate this issue and start trying to solve it. I hope it that by the end of friday I may already have a solution for it.
In t
he meantime, to avoid having the pipeline failing, I would suggest having something as contig_1
instead of 1
as contig names.
But, this is just a workaround for now while I work on solving the issue you've shared. 😄
Hi @wonitawowowo , Can you download the docker image again and try it once more? Since the change is not related to the pipeline but rather in a python package of mine, I just updated the docker image to install the latest version of it.
docker pull fmalmeida/bacannot:v3.2_pyenv
Hi @fmalmeida , I pull down the last version and rerun the pipline with resume. It seems finished with not error. Thank you.
Thanks for the feedback. I will close the issue then.
TypeError raised by falmedia.py Thanks for sharing you pipline. It quiet takes me a lot of convenience during RNA_seq anaylsis. But there might be a mistake in the specific state when call BACANNOT:SUMMARY. When the when the ID of chromosome are number ,during this process, the function named stringify_keys() definite by bacannot2json.py will be called to change the numerucal ID to the string. But it seemd that stringify_keys() can't achieve sometimes. To Reproduce Steps to reproduce the behavior:
for key in d.keys():
return the value '22' as key. It might because of changing dict's keys during iteration will take some problem, the 41 did not be converted to '44'.Then the workflow will end.
Expected behavior I think the the changed dict can be assigned to a new value to aviod this problem,just as def convert_dictkey(d):
change all keys in a dict d
def convert_dictvalue(v):
if v is a dict do convert_dictkey() for v, else raise v
def stringify_keys2(d):
for test
then replace stringify_keys with stringify_keys2 in function bacannot2json, it looks work will: (falmeida-py) root@ac8519d54d79:/media/kangzong/work_fold/SZU_Hospital/work/1c/f5cdfc799ec2d7cbd1ce6891dcedef# falmeida-py bacannot2json -i results -o S29132_BDMS190048659-1a_fastp_1.fq.gz_summary.json ==> Output generated and saved at: S29132_BDMS190048659-1a_fastp_1.fq.gz_summary.json