Skip to content

Commit

Permalink
cast surface area & vol cols to float if exist, make more key names p…
Browse files Browse the repository at this point in the history
…ublic
  • Loading branch information
AmandaBirmingham committed Jul 10, 2024
1 parent 40b666c commit 86b0b80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pysyndna/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
calc_ogu_cell_counts_per_g_of_sample_for_qiita, \
calc_ogu_cell_counts_per_cm2_of_sample_for_qiita, \
calc_ogu_cell_counts_per_ul_of_sample_for_qiita, \
SAMPLE_IN_ALIQUOT_MASS_G_KEY, SAMPLE_SURFACE_AREA_CM2_KEY, \
SAMPLE_VOLUME_UL_KEY, OGU_ID_KEY, OGU_PERCENT_COVERAGE_KEY, \
OGU_CELLS_PER_G_OF_GDNA_KEY, OGU_CELLS_PER_G_OF_SAMPLE_KEY, \
OGU_CELLS_PER_UL_OF_SAMPLE_KEY, OGU_CELLS_PER_CM2_OF_SAMPLE_KEY, \
OGU_ID_KEY, OGU_LEN_IN_BP_KEY, OGU_PERCENT_COVERAGE_KEY, \
Expand All @@ -27,6 +29,8 @@
'calc_copies_of_ogu_orf_ssrna_per_g_sample_from_dfs',
'calc_copies_of_ogu_orf_ssrna_per_g_sample',
'calc_copies_of_ogu_orf_ssrna_per_g_sample_for_qiita',
'SAMPLE_IN_ALIQUOT_MASS_G_KEY', 'SAMPLE_SURFACE_AREA_CM2_KEY',
'SAMPLE_VOLUME_UL_KEY', 'OGU_ID_KEY', 'OGU_PERCENT_COVERAGE_KEY',
'OGU_CELLS_PER_G_OF_GDNA_KEY',
'OGU_CELLS_PER_G_OF_SAMPLE_KEY',
'OGU_CELLS_PER_UL_OF_SAMPLE_KEY',
Expand Down
1 change: 1 addition & 0 deletions pysyndna/src/calc_cell_counts.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ def calc_ogu_cell_counts_biom(
# params df to float if they aren't already
float_col_names = [
GDNA_CONCENTRATION_NG_UL_KEY, SAMPLE_IN_ALIQUOT_MASS_G_KEY,
SAMPLE_SURFACE_AREA_CM2_KEY, SAMPLE_VOLUME_UL_KEY,
ELUTE_VOL_UL_KEY, SEQUENCED_SAMPLE_GDNA_MASS_NG_KEY]
working_params_df = cast_cols(working_params_df, float_col_names, True)

Expand Down

0 comments on commit 86b0b80

Please sign in to comment.