Skip to content

Commit

Permalink
Merge pull request #21 from MannLabs/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
ammarcsj authored Dec 6, 2023
2 parents 4946322 + f3b6460 commit 56e9080
Show file tree
Hide file tree
Showing 15 changed files with 65 additions and 601 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,5 @@ figures/
_docs/
_proc/

sandbox/
sandbox/
test_data/unit_tests/input_table_formats/spectronaut.frgions.large.tsv.tmp.longformat.columnfilt.tsv
2 changes: 1 addition & 1 deletion directlfq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


__project__ = "directlfq"
__version__ = "0.2.13"
__version__ = "0.2.14"
__license__ = "Apache"
__description__ = "An open-source Python package of the AlphaPept ecosystem"
__author__ = "Mann Labs"
Expand Down
4 changes: 2 additions & 2 deletions directlfq/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def set_log_processed_proteins(log_processed_proteins = True):
LOG_PROCESSED_PROTEINS = log_processed_proteins


PROTEIN_ID = None
QUANT_ID = None
PROTEIN_ID = 'protein'
QUANT_ID = 'ion'

def set_global_protein_and_ion_id(protein_id = 'protein', quant_id = 'ion'):
global PROTEIN_ID
Expand Down
6 changes: 5 additions & 1 deletion directlfq/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,11 @@ def _shift_remaining_dataframe_to_reference_sample(self):
@staticmethod
@njit
def _get_num_nas_in_row(row):
return sum(np.isnan(row))
sum = 0
isnans = np.isnan(row)
for is_nan in isnans:
sum+=is_nan
return sum

class NormalizationManagerSamples(NormalizationManager):
def __init__(self, complete_dataframe, num_samples_quadratic):
Expand Down
6 changes: 5 additions & 1 deletion directlfq/protein_intensity_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ def _determine_nansorted_df_index(self):
@staticmethod
@njit
def _get_num_nas_in_row(row):
return sum(np.isnan(row))
sum = 0
isnans = np.isnan(row)
for is_nan in isnans:
sum+=is_nan
return sum


def get_dataframe(self):
Expand Down
2 changes: 1 addition & 1 deletion misc/bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.2.13
current_version = 0.2.14
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?
Expand Down
Loading

0 comments on commit 56e9080

Please sign in to comment.