Skip to content

Commit

Permalink
Update cellranger_multi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CuijieLu committed Apr 17, 2024
1 parent ba8b9ed commit 051e30b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/cellranger_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def write_ch_ge_only_to_csv(self, name_of_file):
file.write("\n[libraries]\nfastq_id,fastqs,feature_types\n")

for key, value in self.lirbaries.items():
key.replace("_CHMARKER_", "")
if value[1] == "Gene Expression" or value[1] == "Multiplexing Capture":
for i in value[0]:
file.write("{},{},{}\n".format(key, i, value[1]))
Expand Down Expand Up @@ -252,7 +253,11 @@ def gather_config_info(sample_dict, genome, IGO_ID):
elif key == "fb":
config.lirbaries[value] = [fastq_list[value], "Antibody Capture"]
elif key == "ch":
config.lirbaries[value] = [fastq_list[value], "Multiplexing Capture"]
# for case of all ch, fb and vdj exits and doesn't need to make two copies of fb fastq file
if "ch" in sample_dict.keys() and "fb" in sample_dict.keys() and "vdj" in sample_dict.keys():
config.lirbaries[value + "_CHMARKER_"] = [fastq_list[value], "Multiplexing Capture"]
else:
config.lirbaries[value] = [fastq_list[value], "Multiplexing Capture"]

return config

Expand Down

0 comments on commit 051e30b

Please sign in to comment.