-
Notifications
You must be signed in to change notification settings - Fork 65
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
Wisecondor DEFRAG algorithm #51
Comments
Anyone please tell me whether you have used DEFRAG script, how did you use it? it is showing me the error. |
Paging @dvanbeek ;) |
Hi @smruti241, I’m currently out of office with little internet access (and no machines to test on). I’ll get back to you in ~2,5 weeks if that’s okay. Just to double check: you did run the code with a 2.7 version of Python, right? Thanks. |
Checking your error myself:
I don't think that is actually in the defrag.py script that is on github (not the one I find when I check the legacy branch anyway). Did you edit this script yourself? The error is about the |
prediction = gnb.predict(getYPerc(testSamplesPickle[testSample])) |
Then I changed all the parentheses one by one to understand the actual error but everytime I changed parantheses I got this error: and the above error too |
Actually both wisecondor and wisecondorX are working fine, but I got stuck in the defrag command only, before that i created .pickle and .gcc files and put it in boydir, girldir and testdir. I created the conda environment of python 2.7 and ran the whole pipeline |
You are confusing functions calls ( This is correct: All your other attempts make no sense to python. For your other error: I don't know what you are doing, you edited the code and it now it doesn't work, I really can't help you with that. I don't think it's required for defrag.py to run either so if you want to change something/develop things I really suggest you learn a bit more python first. |
I didnt change anything but I am getting this error. Can you please tell me why? |
I am not changing script without any cause or reason. I know python, thats why I changed it according to my environment but it didnt work out before changing the script |
You can see I havent changed the line but got this error of expected2D array. Can you tell me whats this about? |
It's complaining about line 265, and that line is not there in the version I'm looking at, here: Line 265 in 13ed9af
So I don't know what it is about. Looks like parts of the code before it were cut out and therefor it now doesn't have the right info for that call. |
It's line 265 in my code because I haven't copied the first few lines of the code....wisecondor defrag script description. It's about line 290 in the code. Please have a look on that line and please let me know. Only this line is troubling me |
Please use a Anyway I'm guessing you only provided a single sample here? Perhaps you can try running with multiple? |
Yeah I have given single test sample. Shall I use multiple test samples ? |
This is my command: Script information:Settings used:boydir boydir/ Processing:Loading reference samples Now what should I do? I havent changed anything in your script and do whatever the script has. Please help me |
@dvanbeek 2-5 weeks would be very late. Please help me regarding this in this week or by next week. I have run the code in Python 2.7 only, but it is giving me the above error. I did all the things, increased my test samples and training samples, changed a little bit in script, but all went in vain. It would be very kind of you if you help me ASAP. |
Someone please help me, I want to use this DEFRAG script only. I dont have any option other than this |
@rstraver @dvanbeek I am asking you both for the past one month about this. If you dont want to help me, please tell me. I wont mind at all. It seems like I am begging in front of you. I am using your tools, I am facing problems, thats why I am asking for help. Nearly everyone in your paper's authors didnt know about wisecondor or defrag or how to use it. Then how did you guys worked on it before. Please if possible help me for defrag only. |
Hi again, sorry for being unresponsive for this long. I wanted to wait for Daphne to come back from holiday and hoped she had some useful pointers, but that seems unlikely to help much. Additionally, pushing for answers from someone on holiday (over other channels) and copying code while omitting the comments that include author and copyright info is considered pretty rude at best, if not suggestive of plagiarism. This code is still available but not actively maintained, it's fairly old. I think it's best if you reconsider using WisecondorX instead. If you really need to make defrag work, ask someone around you with some deeper python knowledge to debug it on your machine. It seems there's something off on your end (machine/usage) that we cannot reproduce/resolve within reasonable efforts. |
@rstraver I didnt know about daphne that she is on holiday. WisecondorX worked best for me. I thought it would be great if I can make defrag work with wisecondorX, but this script is not working with wisecondor too. Secondly, I didnt omit anything in your code, just downloaded it and ran but it gave the same error as I mentioned above. if someone around me could have helped me, then why would have i ask you. Anyways, if it is not working with wisecondorX, its better for me to call off this tool. Thank you for your time. |
@smruti241 @rstraver I've encountered the same error when running this script as: |
Hii,
I have gone thorugh this WISECONDOR and DEFRAG script present in legacy branch. I found WisecondorX quite efficient than wisecondor, but DEFRAG script is not there in wisecondorX so I had to use this. I ran the script and got this error:
Testing classifier on trainingset.
Number of mislabeled points : 3
Sample DEFRAG subset ChrY DEFRAG whole ChrY Determined Gender Total number of reads Cluster % on Y
Traceback (most recent call last):
File "defrag.py", line 265, in
prediction = gnb.predict(getYPerc(testSamplesPickle(testSample)))
TypeError: 'dict' object is not callable
I have prepared .gcc and .pickle for reference sets and randomly put in boydir and girldir (because I dont know the gender, its an unknown sample) and I took test files and their respective .gcc and .pickle files. But it is giving me this error. Can you please tell me whats going wrong? How can I update this script for wisecondorX, do you have any idea?
The text was updated successfully, but these errors were encountered: