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 15, 2024
1 parent 9c72cf4 commit 47dff75
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/cellranger_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import subprocess
import glob
from subprocess import call
import argparse
from collections import OrderedDict
import requests
Expand Down Expand Up @@ -191,7 +190,7 @@ def ch_file_generation(project_id, sample_name):
tag_seq_dict = pd.Series(df['Hashtag sequence'].values,index=df['Hashtag Name']).to_dict()

sub_sample_dict = {}
sub_sample_lst = df[df["Sample Name in IGO"] == sample_name]["Sample Name"].tolist()
sub_sample_lst = df[str(df["Sample Name in IGO"]) == sample_name]["Sample Name"].tolist()
for item in sub_sample_lst:
sub_sample_dict[item] = sample_tag_dict[item]

Expand Down Expand Up @@ -401,7 +400,10 @@ def gather_sample_set_info(sample_name):
fb_type.append("Cell Hashing")
if "Feature Barcoding" in tag_lst:
fb_type.append("Feature Barcoding")
# TODO add vdj type
if "T Cells" in tag_lst:
vdj_type.append("VDJ-T")
if "B Cells" in tag_lst:
vdj_type.append("VDJ-B")
print(fb_type, vdj_type)
break

Expand All @@ -417,7 +419,7 @@ def gather_sample_set_info(sample_name):
sample_set["ch"] = "_IGO_".join([value[1], key])
if "10X_Genomics_VDJ" in value[2][0]:
sample_set["vdj"] = "_IGO_".join([value[1], key])

# TODO add vdj type to the whole pipeline
return sample_set

# TODO check whether a project set is complete to launch pipeline
Expand Down

0 comments on commit 47dff75

Please sign in to comment.