Skip to content

Commit 7a80fdb

Browse files
author
Selcuk
committed
Build fixes
1 parent 7960d70 commit 7a80fdb

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

src/components/PairwiseOverlapMatrix.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@ const PairwiseOverlapMatrix: React.FC<PairwiseOverlapProps> = ({ fastaNames, fol
130130
return positionData;
131131
}, []);
132132

133+
// Check if two amino acids are similar based on matching groups
134+
const areSimilar = useCallback((aa1: string, aa2: string): boolean => {
135+
if (aa1 === aa2) return true;
136+
137+
for (const group of Object.values(matchingGroups)) {
138+
if (group.includes(aa1) && group.includes(aa2)) {
139+
return true;
140+
}
141+
}
142+
return false;
143+
}, []);
144+
133145
// Calculate pairwise overlap matrix based on amino acid conservation
134146
const calculateOverlapMatrix = useCallback((data: AlignmentData[]) => {
135147
const n = data.length;
@@ -224,17 +236,6 @@ const PairwiseOverlapMatrix: React.FC<PairwiseOverlapProps> = ({ fastaNames, fol
224236
}
225237
}, [selectedAlignments, folder, calculatePositionData, calculateOverlapMatrix]);
226238

227-
// Check if two amino acids are similar based on matching groups
228-
const areSimilar = useCallback((aa1: string, aa2: string): boolean => {
229-
if (aa1 === aa2) return true;
230-
231-
for (const group of Object.values(matchingGroups)) {
232-
if (group.includes(aa1) && group.includes(aa2)) {
233-
return true;
234-
}
235-
}
236-
return false;
237-
}, []);
238239

239240

240241
// Load data when selected alignments or threshold changes

0 commit comments

Comments
 (0)