Skip to content

Commit

Permalink
v0.2.2, add indexes to match pep1_id and pep2_id
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-combe committed Jul 30, 2024
1 parent 8045523 commit dbdf5fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions models/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class Match(Base):
spectra_data_id: Mapped[int] = mapped_column(Integer, nullable=True) # nullable for csv data
multiple_spectra_identification_id: Mapped[str] = mapped_column(Integer, nullable=True)
multiple_spectra_identification_pc: Mapped[str] = mapped_column(CHAR, nullable=True)
pep1_id: Mapped[int] = mapped_column(Integer, nullable=False)
pep2_id: Mapped[int] = mapped_column(Integer, nullable=True)
pep1_id: Mapped[int] = mapped_column(Integer, index=True, nullable=False)
pep2_id: Mapped[int] = mapped_column(Integer, index=True, nullable=True)
charge_state: Mapped[int] = mapped_column(Integer, nullable=True)
pass_threshold: Mapped[bool] = mapped_column(BOOLEAN, nullable=False)
rank: Mapped[int] = mapped_column(Integer, nullable=False)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_version(rel_path):

setup(
name="xi-mzidentml-converter",
version="0.2.1",
version="0.2.2",
description="xi-mzidentml-converter uses pyteomics (https://pyteomics.readthedocs.io/en/latest/index.html) to "
"parse mzIdentML files (v1.2.0) and extract crosslink information. Results are written to a "
"relational database (PostgreSQL or SQLite) using sqlalchemy.",
Expand Down

0 comments on commit dbdf5fb

Please sign in to comment.