gpHSP icon indicating copy to clipboard operation
gpHSP copied to clipboard

How to convert Sigma_Profile into array

Open mohammad-saber opened this issue 4 years ago • 3 comments

Thank you very much for sharing your great work.

When I load data files by "pd.read_csv", the datatype of sigma_profile is String.

Could you please guide me how to convert it into Array? I tried "eval()" function, but it gives the following error: SyntaxError: invalid syntax

I think "eval()" works when there is a "," between numbers in sigma_profile.

Thank you very much for your help.

mohammad-saber avatar Dec 02 '20 03:12 mohammad-saber

Hi, were you able to get the gpMol package? As I saw your are using eval() functions

shree970 avatar Jan 19 '21 06:01 shree970

No, I don't have the package. It is not shared in the repository.

mohammad-saber avatar Jan 19 '21 08:01 mohammad-saber

In paper they mention. "In our datasets we found that all σ-profiles can be constrained to a 61- length continuous vector. Each vector can be interpreted as signal, as such we normalize each vector to unit length. Since most profiles have a similar structure, we subtract the mean signal of all profiles to contrast the differences between profiles"

shree970 avatar Feb 11 '21 07:02 shree970