Add CellRanger multi support for GEX+VDJ (tested case: gex + vdj-t + vdj-b) #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to improve the robustness and functionality of the
run_sample.py
script in thelib/realms/tenx
directory. The changes focus on ensuring default values for configurations, refining the generation of required files, and enhancing the command assembly logic.Improvements to Default Values and Initialization:
lib/realms/tenx/run_sample.py
: Modified the__init__
method to set default empty dictionaries forproject_info
,config
, andreference_genomes
if they are not provided. [1] [2]lib/realms/tenx/run_sample.py
: Updated thecollect_reference_genomes
method to handle cases whereconfig
might beNone
.Enhancements to File Generation:
lib/realms/tenx/run_sample.py
: Refined theprocess
method to dynamically generate required files based on afiles_to_generate
configuration.lib/realms/tenx/run_sample.py
: Split thegenerate_libraries_csv
method intocollect_libraries_data
andgenerate_libraries_csv
for better modularity and ensured directory creation before file writing.collect_libraries_data
also used ingenerate_multi_sample_csv
.lib/realms/tenx/run_sample.py
: Implemented thegenerate_multi_sample_csv
method to generate the multi-sample CSV file based on pipeline information and configuration.Command Assembly Logic:
lib/realms/tenx/run_sample.py
: Improved theassemble_cellranger_command
method by logging pipeline details, handling missing required arguments, and ensuring the output directory argument is always included. [1] [2]Minor Logging Adjustments:
lib/realms/tenx/tenx_project.py
: Removed redundant logging of lab samples in theextract_samples
method.