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

fix transform calculation #83

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Conversation

myushen
Copy link
Contributor

@myushen myushen commented Nov 1, 2024

No description provided.

@@ -134,6 +133,9 @@ transform_utility = function(input_read_RNA_assay, transform_fx, external_path,
# Apply the transformation method to counts
counts <- transform_function(counts)

# Apply the transformation method to 5000 cells
counts_light_for_checks <- transform_function(counts_light_for_checks)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would not be better to move

counts_light_for_checks = counts[,sample(seq_len(ncol(counts)), size = min(numer_of_cells_to_sample, ncol(counts))),drop=FALSE]

after line 134. So we don't transform twice, but counts_light_for_checks are taken from the transformed counts?

also density est should then follow counts_light_for_checks

@stemangiola stemangiola merged commit eedc47b into MangiolaLaboratory:master Nov 1, 2024
0 of 3 checks passed
@stemangiola
Copy link
Collaborator

Thanks!

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