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

Hackathon #25

Merged
merged 8 commits into from
May 21, 2024
Merged

Hackathon #25

merged 8 commits into from
May 21, 2024

Conversation

dimalvovs
Copy link
Contributor

This is a code review template, it will be displayed after each pull request. We do code reviews because we care about quality of our codebase and because we care about long-term development goals. We do not do code reviews to blame the ones who contribute. There is no seniority in this process and there is no perfect code, we just want to avoid storing code that is not OK.

For the submitter

  • The change is sufficiently small

For the approver

  • OK, code does what is intended
  • its' OK to do it that way
  • it's OK to read and comprehend the code
  • tests, documentation, style are OK

features <- getSpatialFeatures("$cogapsResult");
spPatterns <- cbind(coords, features);
barcodes <- intersect(rownames(features), rownames(coords))
spPatterns <- cbind(coords[barcodes,], features[barcodes,]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it may be shorter to express the same with base::merge

spPatterns <- cbind(coords, features);
barcodes <- intersect(rownames(features), rownames(coords))
spPatterns <- cbind(coords[barcodes,], features[barcodes,]);

saveRDS(spPatterns, file = "${prefix}/spPatterns.rds");

#temp fix to remove barcodes with no spatial data
barcodes <- intersect(rownames(spPatterns), colnames(dataMatrix))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this seems duplicate

@dimalvovs dimalvovs self-assigned this May 20, 2024
@dimalvovs dimalvovs merged commit 2f1d893 into main May 21, 2024
2 checks passed
@dimalvovs dimalvovs deleted the hackathon branch May 21, 2024 00:05
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