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 Oct 12, 2023
1 parent a55927b commit 259304d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/cellranger_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,11 @@ def update_fastq_location(self, sub_sample_name, destination):
# default all hash tag are totalseq B from biolegend
def ch_file_generation(project_id, sample_name):
in_file_location = DRIVE_LOCATION + project_id + "/" + os.listdir(DRIVE_LOCATION + project_id)[0]
df = pd.read_excel(in_file_location, engine="openpyxl")
with open(in_file_location, "rb") as f:
df = pd.read_excel(f, engine="openpyxl")
line_number = df[df[df.columns[0]] == "Your Submission:"].index.values
df = pd.read_excel(in_file_location, engine="openpyxl", skiprows=line_number + 1, header=line_number + 1)
with open(in_file_location, "rb") as f:
df = pd.read_excel(f, engine="openpyxl", skiprows=line_number + 1, header=line_number + 1)
sample_tag_dict = pd.Series(df['Hashtag Name'].values,index=df['Sample Name']).to_dict()
tag_seq_dict = pd.Series(df['Hashtag sequence'].values,index=df['Hashtag Name']).to_dict()

Expand Down Expand Up @@ -401,7 +403,6 @@ def gather_sample_set_info(sample_name):

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


# TODO fb file generation from user form

if __name__ == '__main__':
Expand Down

0 comments on commit 259304d

Please sign in to comment.