Git Product home page Git Product logo

bacteriophagehostprediction's People

Contributors

dimiboeckaerts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bacteriophagehostprediction's Issues

RBP_alignmentscores.txt is missing

Good morning,

Could you share RBP_alignmentscores.txt file required to final preprocessing in RBP_host_prediction.ipynb?

Regards,
Piotr

Possible bug in Protein Feature Composition (CTDC) feature extraction

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:

for p in property:
c1 = Count1(group1[p], sequence) / len(sequence)
c2 = Count1(group2[p], sequence) / len(sequence)
c3 = 1 - c1 - c2
encoding = [c1, c2, c3]
return encoding

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:

https://github.com/Superzchen/iFeature/blob/942fb2760eae540a59214c540bd3329e8dca76e2/codes/CTDC.py#L75-L79

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.