Skip to content

Commit

Permalink
Merge pull request #73 from zprobot/master
Browse files Browse the repository at this point in the history
update: ibaqpy
  • Loading branch information
ypriverol authored Nov 22, 2024
2 parents ad8efaa + 72090ff commit 96892e6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ venv
/tests/PXD003947/PXD003947-ibaq-norm.csv
/tests/PXD003947/PXD003947-peptides-norm.csv
/tests/PXD003947/PXD003947-peptides-norm.parquet
/build/
/dist/
14 changes: 6 additions & 8 deletions ibaqpy/ibaq/ibaqpy_commons.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
from matplotlib import pyplot as plt

PARQUET_COLUMNS = [
"protein_accessions",
"pg_accessions",
"peptidoform",
"sequence",
"charge",
"fragment_ion",
"isotope_label_type",
"precursor_charge",
"channel",
"condition",
"biological_replicate",
Expand Down Expand Up @@ -52,12 +50,12 @@
IBAQ_PPB = "IbaqPpb"

parquet_map = {
"protein_accessions": PROTEIN_NAME,
"pg_accessions": PROTEIN_NAME,
"peptidoform": PEPTIDE_SEQUENCE,
"sequence": PEPTIDE_CANONICAL,
"charge": PEPTIDE_CHARGE,
"fragment_ion": FRAGMENT_ION,
"isotope_label_type": ISOTOPE_LABEL_TYPE,
"precursor_charge": PEPTIDE_CHARGE,
#"fragment_ion": FRAGMENT_ION,
#"isotope_label_type": ISOTOPE_LABEL_TYPE,
"channel": CHANNEL,
"condition": CONDITION,
"biological_replicate": BIOREPLICATE,
Expand Down
4 changes: 2 additions & 2 deletions ibaqpy/ibaq/peptide_normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,9 @@ def get_unique_labels(self):
return: A list of labels.
"""
unique = self.parquet_db.sql(
"SELECT DISTINCT isotope_label_type FROM parquet_db"
"SELECT DISTINCT channel FROM parquet_db"
).df()
return unique["isotope_label_type"].tolist()
return unique["channel"].tolist()

def get_unique_tec_reps(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion ibaqpy/ibaq/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from sklearn.decomposition import PCA
from sklearn.impute import KNNImputer

from combat.pycombat import pycombat
#from combat.pycombat import pycombat

logging.basicConfig(
format="%(asctime)s [%(funcName)s] - %(message)s", level=logging.DEBUG
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def readme():
"qnorm",
"seaborn",
"typing_extensions",
"combat",
#"combat",
],
entry_points={"console_scripts": ["ibaqpy=ibaqpy.ibaqpyc:main"]},
classifiers=[
Expand Down

0 comments on commit 96892e6

Please sign in to comment.