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

Subsampling at the point of single cell merging #121

Merged
merged 2 commits into from
Jan 7, 2021

Conversation

gwaybio
Copy link
Member

@gwaybio gwaybio commented Jan 7, 2021

With this merge, one is able to use only some of the single cells (either a fraction or a whole number) per well, in a single cell analysis

ap_subsample = SingleCells(file_or_conn=file, subsample_frac=0.2)

sc_merged_df = ap_subsample.merge_single_cells(
    sc_output_file="none",
    compute_subsample=True,
    compression_options=None,
    float_format=None,
    single_cell_normalize=True,
    normalize_args=None,
)

@codecov-io
Copy link

codecov-io commented Jan 7, 2021

Codecov Report

Merging #121 (b5ba767) into master (91afadc) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #121      +/-   ##
==========================================
+ Coverage   98.65%   98.72%   +0.06%     
==========================================
  Files          45       45              
  Lines        1865     1885      +20     
==========================================
+ Hits         1840     1861      +21     
+ Misses         25       24       -1     
Impacted Files Coverage Δ
pycytominer/cyto_utils/cells.py 95.29% <100.00%> (+0.84%) ⬆️
pycytominer/tests/test_cyto_utils/test_cells.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 91afadc...b5ba767. Read the comment docs.

@gwaybio gwaybio merged commit 90fda6b into cytomining:master Jan 7, 2021
@gwaybio gwaybio deleted the update-subsample branch January 7, 2021 21:58
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.

2 participants