AlexsLemonade / scpca-downstream-analyses

This repository is intended to store our pipeline for marker genes analysis.
0 stars 0 forks source link

Incorporate integration order #348

Closed cbethell closed 1 year ago

cbethell commented 1 year ago

Issue Addressed Closes #347

What is the purpose of these changes?

This PR allows us to use the auto.merge option for fastMNN integration, and also allows for users to provide a character vector of library ids to use as the order for integration.

What changes did you make?

The following modifications were made to the perform-integration.R script:

Were there any other solutions that you tried?

The formatting of the fastmnn_merge_order at line 108 was implemented because without this, I receive the following error:

Error in .create_tree_predefined(batches, restrict, merge.order) : 
  invalid leaf nodes specified in 'merge.order'

Otherwise, users would need to use c("library02", "library01") when implementing this argument. Any comments, concerns, or questions important for reviewers

Checklist

Place an x in all boxes that you have completed.