encoding

We define all the usefull functions to encode the TR sequence as an imput for the predictive model

source

encode_tr_list

 encode_tr_list (list_TRs:list, feat=1)

Encodes a list of TR sequences. If feat is 1, uses only the single feature model, if 2 uses the 2 features model.

Type Default Details
list_TRs list A list of DNA sequences (strings) to encode.
feat int 1
TR_list=['AACTTGCTAGTAAACACAGTGCAGCTAAAGTGCATTCTAATGGGGTACTAAATGTGTTGTTCCATCTGGG','CCAGAGGTTAGGATTATGAGTGTAGTGCGTATCACGTGGGTTGCAGATTAAACAGGTCGTGCCTCATTTA']
encode_tr_list(TR_list,feat=2)
array([[ -8.17911339, -15.36869621],
       [-11.47970581, -13.57634544]])