dimiboeckaerts / bacteriophagehostprediction Goto Github PK
View Code? Open in Web Editor NEWCode and database related to our manuscript "Predicting bacteriophage hosts based on receptor-binding proteins"
License: MIT License
Code and database related to our manuscript "Predicting bacteriophage hosts based on receptor-binding proteins"
License: MIT License
Good morning,
Could you share RBP_alignmentscores.txt
file required to final preprocessing in RBP_host_prediction.ipynb
?
Regards,
Piotr
Can you kindly include RBP_alignmentscores.txt in the repo so that I can run the final preprocessing step in the notebook that you provided? Thanks!
Hi,
I was using the RBP_functions.py
module as a reference to extract features of certain proteins, but I noticed a possible bug. In the CTDC function, the loop overrides the encoding
variable in each iteration, which is returned at the end. This is the code:
BacteriophageHostPrediction/RBP_functions.py
Lines 245 to 251 in 333cf9c
This causes to only consider the last of the properties (list defined in this line), which is not the desired behavior, I think. You can confirm this by replacing the whole list of properties with a list only containing the last value: ["solventaccess"]
. I guess that the desired behavior is to calculate the encoding
for each property and accumulate the whole sequence, resulting in a list of 39 values instead of only 3.
This possible error is also present in the supplementary material of the corresponding paper, as Table S3 (b) shows only 3 features for Protein composition, when it might be 39. In the reference paper (iFeature) the value is correctly described as 39 numerical features for the same purpose. The code of the reference paper does not have this possible bug and works as described:
for p in property:
c1 = Count(group1[p], sequence) / len(sequence)
c2 = Count(group2[p], sequence) / len(sequence)
c3 = 1 - c1 - c2
code = code + [c1, c2, c3]
Is this actually a bug? If that's the case, does it affect the results displayed in the notebook significantly? I guess that more features might help to improve the models (depending on the nature of the missing features). Thanks.
Best,
Antonio.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.