You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thank you for reading this e-mail, i have some problems for using ANARCI
The similarity calculation is a bit problematic compared with imgt, in imgt, the allele "IGKV1S1*01" identity is 0.89, but we get the value is 0.84
my test code is bellow:
defget_identity( state_sequence, germline_sequence ):
""" Get the partially matched sequence identity between two aligned sequences. Partial in the sense that gaps can be in the state_sequence. """# Ensure that the sequences are the expected lengthassertlen( state_sequence) ==len(germline_sequence ) ==128n, m=0, 0foriinrange( 128 ):
ifgermline_sequence[i] =="-":continueifstate_sequence[i].upper() ==germline_sequence[i]: m+=1n+=1ifnotn:
return0returnfloat(m)/ndefmain():
#'IGKV1S1*01'identity=get_identity('AVVLTQTASPVSAAVGGTVTINCQASQSVY----KNNRLAWYQQKPGQPPKLLIYGA-------STLASGVP-SRFKGSG--SGTQFTLTISDLECDDAATYYCAGGY---SGNINVFGGGTEVVVK-','ALVMTQTPSPVSAAVGGTVTISCQSSESVY----SNNRLSWFQQKPGQPPKLLIYTA-------SSLASGVP-SRFKGSG--SGTQFTLTISGVECDDAATYYCAGYK--------------------')
print(identity) #0.84#'IGKV1S2*01'identity=get_identity('AVVLTQTASPVSAAVGGTVTINCQASQSVY----KNNRLAWYQQKPGQPPKLLIYGA-------STLASGVP-SRFKGSG--SGTQFTLTISDLECDDAATYYCAGGY---SGNINVFGGGTEVVVK-','AQVLTQTESPVSAPVGGTVTINCQASQSVY----DNNWLSWYQQKPGQPPKLLIYDA-------SKLASGVP-SRFSGSG--SGTQFTLTISGVQCDDAATYYCQGSY--------------------')
print(identity) #0.85main()
The text was updated successfully, but these errors were encountered:
Dear Dr Fergus Boyles
thank you for reading this e-mail, i have some problems for using ANARCI
The similarity calculation is a bit problematic compared with imgt, in imgt, the allele "IGKV1S1*01" identity is 0.89, but we get the value is 0.84
my test code is bellow:
The text was updated successfully, but these errors were encountered: