Skip to content

Commit bb5f203

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
Add Analysis Settings section with reproduction info
1 parent e79f79e commit bb5f203

1 file changed

Lines changed: 49 additions & 1 deletion

File tree

src/utils/pdfGenerator.ts

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,55 @@ const addInstructionPage = (
528528

529529
y += 10;
530530

531-
// 4. Interaction Legend (Bottom)
531+
// 4. Analysis Settings Box
532+
doc.setFont("helvetica", "bold");
533+
doc.setFontSize(11);
534+
doc.setTextColor(0);
535+
doc.text("Analysis Settings", margin, y);
536+
y += 8;
537+
538+
doc.setDrawColor(200);
539+
doc.setFillColor(250, 250, 250);
540+
const settingsBoxHeight = 35;
541+
doc.roundedRect(margin, y, 170, settingsBoxHeight, 2, 2, 'FD');
542+
543+
let settingsY = y + 8;
544+
const settingsLeftPad = margin + 8;
545+
546+
doc.setFont("helvetica", "normal");
547+
doc.setFontSize(9);
548+
doc.setTextColor(50);
549+
550+
// Distance Thresholds
551+
doc.setFont("helvetica", "bold");
552+
doc.text("Distance Cutoffs:", settingsLeftPad, settingsY);
553+
doc.setFont("helvetica", "normal");
554+
doc.text("Close Contact < 5.0 A | Proximal 5.0-8.0 A", settingsLeftPad + 42, settingsY);
555+
settingsY += 6;
556+
557+
// Analysis Type
558+
doc.setFont("helvetica", "bold");
559+
doc.text("Method:", settingsLeftPad, settingsY);
560+
doc.setFont("helvetica", "normal");
561+
doc.text("Euclidean distance between Ca atoms", settingsLeftPad + 42, settingsY);
562+
settingsY += 6;
563+
564+
// Interaction Types Detected
565+
doc.setFont("helvetica", "bold");
566+
doc.text("Interaction Types:", settingsLeftPad, settingsY);
567+
doc.setFont("helvetica", "normal");
568+
doc.text("Salt Bridges, Disulfide Bonds, Hydrophobic, Pi-Stacking", settingsLeftPad + 42, settingsY);
569+
settingsY += 6;
570+
571+
// Note about reproducibility
572+
doc.setFont("helvetica", "italic");
573+
doc.setFontSize(8);
574+
doc.setTextColor(100);
575+
doc.text("Settings ensure reproducible analysis. Scan QR for interactive view.", settingsLeftPad, settingsY);
576+
577+
y += settingsBoxHeight + 10;
578+
579+
// 5. Interaction Legend (Bottom)
532580
// Check space
533581
if (y > doc.internal.pageSize.getHeight() - 60) {
534582
doc.addPage();

0 commit comments

Comments
 (0)