-
Notifications
You must be signed in to change notification settings - Fork 0
updated new #6
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
updated new #6
Conversation
Reviewer's GuideThis PR enhances DataProcessor by adding a real-time progress bar for peptide-to-protein alignment, centralizing key imports at the module level, refining the isoform splitting regex, and simplifying the ImmunoViz object creation signature. Sequence diagram for peptide-to-protein alignment with progress barsequenceDiagram
participant DataProcessor
participant ProgressBar as Progress
participant DataFrame as data
participant ProteinDB as get_protein_sequence
participant Output as formatted_rows
DataProcessor->>ProgressBar: Start progress bar (total = len(data))
loop For each row in data
DataProcessor->>DataFrame: Get peptide, accession, intensities
DataProcessor->>DataProcessor: extract_protein_ids
alt protein_ids found
loop For each protein_id
DataProcessor->>ProteinDB: get_protein_sequence(protein_id)
alt sequence found
DataProcessor->>DataProcessor: find_peptide_position
else sequence not found
DataProcessor->>DataProcessor: Use placeholder positions
end
DataProcessor->>Output: Append formatted row if intensity > threshold
end
end
DataProcessor->>ProgressBar: Update progress
end
ProgressBar-->>DataProcessor: Complete
Class diagram for updated PeptideDataProcessor structureclassDiagram
class PeptideDataProcessor {
+extract_protein_ids(accession_value: str, protein_pattern=None) List[str]
+extract_protein_isoforms(accession_value: str, protein_pattern: str = r'[,:;|/\s]+') List[str]
+filter_and_format_data(...)
+get_protein_sequence(protein_id: str) Optional[str]
+create_immunoviz_object() ImmunoViz
-intensity_cols
-sample_prefix
-peptide_df
}
class ImmunoViz
PeptideDataProcessor --> ImmunoViz : creates
Class diagram for ImmunoViz import and type annotation updateclassDiagram
class PeptideDataProcessor {
+create_immunoviz_object() ImmunoViz
}
class ImmunoViz
PeptideDataProcessor --> ImmunoViz : returns
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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 encountered an error and are unable to review this PR. We have been notified and are working to fix it.
You can try again by commenting this pull request with @sourcery-ai review, or contact us for help.
Summary by Sourcery
Integrate a real-time progress bar into peptide filtering, refine isoform extraction regex, and streamline ImmunoViz integration.
Enhancements: