Skip to content

Conversation

@unkosan
Copy link
Owner

@unkosan unkosan commented Mar 27, 2025

Summary by CodeRabbit

- New Feature: pHMMモデルの埋め込みをWeblogoとして視覚化する新機能を追加しました (`map_logo`関数)。
- New Feature: Weblogoマップを生成・返却する新しいAPIエンドポイント `/api/session/decode/weblogo-map` を追加しました。
- New Feature: ReduxストアとAPIを使用してWeblogoマップを取得するカスタムフック `useWeblogoMap` を追加しました。
- New Feature: Weblogoマップを表示するReactコンポーネント `WeblogoMap` を追加し、UIに新しいタブ「Weblogo map」を統合しました。
- Refactor: 一時ファイル処理のコードを簡潔化し、インポートの整理を実施しました。

@github-actions
Copy link

github-actions bot commented Mar 27, 2025

Image description CodeRabbit

ウォークスルー

この変更セットは、pHMMモデルのWeblogo視覚化機能をバックエンドとフロントエンドに統合するものです。バックエンドでは新しいエンドポイントとロジックが追加され、フロントエンドでは対応するフック、コンポーネント、およびUIが実装されています。全体的に、APIとUI間のデータフローが確立され、Weblogoマップの生成と表示が可能になりました。

変更点

ファイル名 変更内容
backend/core/algorithms.py map_logo関数を追加し、Weblogo視覚化機能を実装。draw_logo関数のドキュメント追加、コード構造の調整、インポート整理を実施。
backend/routers/session.py, frontend/services/route/session.ts Weblogoマップ生成用の新しいエンドポイント/api/session/decode/weblogo-mapを追加。リクエスト/レスポンススキーマを定義し、セッションUUIDを処理するロジックを実装。
frontend/components/viewer/latent-graph/hooks/use-weblogo-map.tsx ReduxストアからsessionIdを取得し、APIを呼び出してWeblogoマップを取得するカスタムフックuseWeblogoMapを追加。非同期データ取得とエラー処理を実装。
frontend/components/viewer/latent-graph/weblogo-map.tsx, frontend/components/viewer/latent-graph/index.tsx WeblogoMapコンポーネントを追加し、Weblogoマップのデータ取得と表示を実装。新しいタブ「Weblogo map」をLatentSpaceGraphに追加。

Uplevel your code reviews with CodeRabbit Pro

CodeRabbit Pro

If you like this project, please support us by purchasing the Pro version. The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Commits Files that changed from the base of the PR and between 124cc96 and 6c36033 commits.
Files selected (6)
  • backend/core/algorithms.py (3)
  • backend/routers/session.py (3)
  • frontend/components/viewer/latent-graph/hooks/use-weblogo-map.tsx (1)
  • frontend/components/viewer/latent-graph/index.tsx (2)
  • frontend/components/viewer/latent-graph/weblogo-map.tsx (1)
  • frontend/services/route/session.ts (2)
Review comments generated (21)
  • Review: 7
  • LGTM: 14

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

@unkosan unkosan merged commit 7b88630 into dev Mar 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants