@@ -16,12 +16,23 @@ def MismatchModal(*args):
1616 ], id = 'mismatch-modal' , is_open = True )
1717
1818
19+ def MismatchDatasetModal (fname , seq_fname ):
20+ return dbc .Modal ([
21+ ModalHeader ("Mismatch Detected" ),
22+ dbc .ModalBody ([
23+ html .P ("""We were unable to match the sequence at {} with the data at the file {}. Please
24+ ensure that the file you attempt to upload corresponds with the protein sequence
25+ in the provided FASTA file.""" .format (seq_fname , fname ), style = {'text-align' : "justify" }),
26+ ])
27+ ], id = 'mismatch-dataset-modal' , is_open = True )
28+
29+
1930def MismatchSequenceModal (* args ):
2031 return dbc .Modal ([
2132 ModalHeader ("Sequence Mismatch" ),
2233 dbc .ModalBody ([
23- html .P ("""We were unable to match the uploaded sequence with contact maps in the following files.
24- Please ensure that the provided the sequence corresponds with the structure in these contact maps .""" ,
34+ html .P ("""We were unable to match the uploaded sequence with datasets in the following files.
35+ Please ensure that the provided sequence corresponds with the structure described in these datasets .""" ,
2536 style = {'text-align' : "justify" }),
2637 html .Ul ([html .Li ('File: %s' % arg ) for arg in args ], id = 'mismatched-maps-div' )
2738 ])
@@ -541,6 +552,23 @@ def TutorialFourModal():
541552 autoFocus = True )
542553
543554
555+ def TutorialFiveModal ():
556+ return dbc .Modal ([
557+ dbc .ModalHeader ('Tutorial 5: Video Tutorial' ),
558+ dbc .ModalBody ([
559+ 'Below there is a short video tutorial with an overview of the main ConPlot features. ' ,
560+ html .Br (),
561+ html .Br (),
562+ html .Iframe (width = 1100 , height = 630 , src = UrlIndex .YOUTUBE_EMBED .value ,
563+ style = {'frameborder' : 0 , 'allow' : "accelerometer; autoplay; clipboard-write; "
564+ "encrypted-media; gyroscope; picture-in-picture" }),
565+ html .Br (),
566+ 'If you cannot see the video click ' , html .A (html .U ('here' ), href = UrlIndex .YOUTUBE_LINK .value ), '.'
567+ ])
568+ ], id = {'type' : 'tutorial-modal' , 'index' : 5 }, is_open = False , size = 'xl' , scrollable = True , centered = True ,
569+ autoFocus = True )
570+
571+
544572def RedisConnectionErrorModal ():
545573 return dbc .Modal ([
546574 ModalHeader ("Redis connection error" ),
@@ -679,6 +707,7 @@ def FailureRecoverAccount():
679707 ),
680708 ], id = 'fail-recovery-modal' , is_open = True )
681709
710+
682711def InvalidPasswordRecoverAccount ():
683712 return dbc .Modal ([
684713 dbc .ModalHeader (
0 commit comments