Closed anandksrao closed 2 years ago
CROPSR is fully functional in Mac OS. I have developed the code in both Mac and Linux environments, so that should not be a problem.
From your log message, it seems as you have uncommented the functions for execution of the CPF1 pipeline (lines 476 - 502) without uncommenting all the other required parts to make it work. This pipeline is commented out because it has not been fully implemented and its use is not endorsed at this moment.
If you can, please try to run it without modifications to the code, so we can validate that this is the only issue.
Best wishes, Hans
Thanks for your reply, Hans.
I did not uncomment any lines during install, but based on your response above, I did go in and manually comment out lines 476 through 502.
This allowed successful execution of my run as outlined in your instructions, and I see correctly formatted output files as well. Thank you!
Your CROPSR Github home page mentions -
An option to output as a JSON following MongoDB formatting is also provided, requiring the pymongo library as an additional dependency.
I did install the pymongo library using your instructions
$ pip3 install pymongo
But both under CROPSR arguments and Help Menu listed under step 4 of First Steps, I do not see that flag to send output to a JSON file. I apologize if I am failing to notice something obvious!? Could you please point me in the right direction? Thanks in advance
I apologize, it must have been removed it in one of the updates and I hadn't realized the execution for the MongoDB conversion was not included in the instructions. You can manually convert the CSV to a MongoDB or a SQL-type database at your own discretion, whichever works best for your workflow. It is not a requirement for CROPSR functionality.
Gotcha!
BTW, do you think it might be easy to (also) output the sgRNA predictions in GFF3 format?
because...
I imagine it would be easy and very useful for end user like myself to use something like BEDTOOLS or BEDOPS to extract intersection between my target gene(s) of interest and CROPSR predictions using one or more of the several tools in these software? Your thoughts?
note to self about CSV to MongoDB conversion: Check out these links and implement whatever is easy / efficient / makes sense https://kb.objectrocket.com/mongo-db/how-to-import-a-csv-into-mongodb-327 https://medium.com/analytics-vidhya/import-csv-file-into-mongodb-9b9b86582f34 https://www.mongodb.com/community/forums/t/how-to-load-a-csv-file-to-mongodb-atlas/106571/2 https://www.mongodb.com/docs/database-tools/mongoimport/
After what appeared to be a normal install, I executed the test run as listed on your main GitHub page, and it's entire STDOUT is copy / pasted below. As you can see, everything but the expected final line was generated.
Instead of the expected final line, shown below, I see errors returned from lines 476 and 523 of the CROPSR.py script.
The output file has been generated at sample_data/output.csv
Is this because my CROPSR is installed on a Mac OS X local machine, not a UNIX / LINUX based cluster (mentioned in your paper)? Will CROPSR NOT run on MacOSX - ignoring size limits / run time issues!?
But if CROPSR can and will indeed run on Mac OS X, could you please help troubleshoot this error message?
Thank you in advance.