Skip to content

Commit

Permalink
update for new cellranger template
Browse files Browse the repository at this point in the history
  • Loading branch information
CuijieLu committed Nov 20, 2024
1 parent e84dae3 commit 287da08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/cellranger_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ def ch_file_generation(project_id, sample_name):
line_number = df[df[df.columns[0]] == "Your Submission:"].index.values
with open(in_file_location, "rb") as f:
df = pd.read_excel(f, engine="openpyxl", skiprows=line_number + 1, header=line_number + 1)

# update column name for new template
df.columns = ['Sample Name' if col == 'Sample Name Pre-Hashing' else col for col in df.columns]
df.columns = ['Sample Name in IGO' if col == 'Sample ID from Sample Submission' else col for col in df.columns]

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

0 comments on commit 287da08

Please sign in to comment.