Closed kvetab closed 3 years ago
Thanks @kvetab . Sorry for the delay, somehow this didn't show up on my notifications 😮 I'll put it on the todo for this week :)
Thank you!
Hi @sacdallago, @konstin, I'd like to ask, how often / in which situations do you make new releases? It would be really cool if you could make one sometime soon, as I'd like to use the contents of my PR in a project without having to install from the develop branch :) Thanks
After discussing with David (@prihoda), I'm creating a PR based on the issue #153 .
Enable returning files with activations for secondary structure and disorder predictions. Config file can contain parameter
get_activations
, which controls whether these files are created. Use softmax on raw activations tensors (yhat_...
) to obtain "probabilities" for each of the classes. Return these from theget_secondary_structure
function inBasicAnnotationExtractor
, store them inBasicSecondaryStructureResult
and subsequently inBasicExtractedAnnotations
, which is returned byget_annotations
. Inpredict_annotations_using_basic_models
, check forget_activations
parameter; if true, create output files for activations from DSSP3, DSSP8 and disorder. Then, store activations into dataframes along with the sequence ID and residue number. Each row corresponds to one position in one sequence, columns correspond to sequence ID, residue number (1-based) and all the possible classes. For each prediction type (DSSP3, DSSP8 and disorder), concatenate all dataframes and print to the corresponding csv file.Looking forward to any comments, especially on the use of the config file, I'm a bit fuzzy on that.