-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#4853-Search monomer in library by IDT #5373
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments will be fixed in future PR
const modifications = item.idtAliases?.modifications; | ||
let transformedIdtText = idtName; | ||
|
||
if (item.name?.includes('MOE') && idtName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not rely on monomer name because we will have other monomers with idt aliases in future
switch (position) { | ||
case PresetPosition.Library: | ||
transformedIdtText = `${endpoint5}, ${internal}`; | ||
break; | ||
case PresetPosition.ChainStart: | ||
transformedIdtText = endpoint5; | ||
break; | ||
case PresetPosition.ChainMiddle: | ||
transformedIdtText = internal; | ||
break; | ||
case PresetPosition.ChainEnd: | ||
transformedIdtText = endpoint3; | ||
break; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Position does not play any role in library.
Issue => #4853
Updates:
User be able to search by IDT aliases in a library using search bar.
Single symbol / in a query result in displaying all the monomers that have IDT alias.
The symbol after / is the first symbol of the IDT alias.
The symbol before the second / is the last symbol of the IDT alias.
Searching diPr/ should return a monomer with alias i6diPr, but searching diP/` should not.
If there is any symbol after the second slash, there shouldn't be any results.
The search is not case sensitive.
Check list
#1234 – issue name