Skip to content
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

Refactor readers ix #251

Open
wants to merge 7 commits into
base: refactor_readers_VIII
Choose a base branch
from
Open

Conversation

mschwoer
Copy link
Contributor

reorder some methods, rename, simplify

@@ -251,115 +233,34 @@ def import_file(self, _file: str) -> pd.DataFrame:
self._post_process() # here, libraryreader, diann, msfragger
return self._psm_df

def _pre_process(self, df: pd.DataFrame) -> pd.DataFrame:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

has just been moved within the class

break
# TODO: warn if there's more
return mapped_columns
def _pre_process(self, df: pd.DataFrame) -> pd.DataFrame:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

naming question: the original dataframe (the one loaded from disk) is sometimes referred to as df sometimes as origin_df .. any preferences? (or a third option?)

@mschwoer mschwoer marked this pull request as ready for review November 20, 2024 13:10
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.

1 participant