Skip to content

Commit

Permalink
Now the CSV file needs to have the discussed structure as stated #60 …
Browse files Browse the repository at this point in the history
…in micro-nf
  • Loading branch information
DenisSch committed Apr 8, 2020
1 parent 639c6e8 commit ae0175c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions SingleCellDataExtraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,10 @@ def ExtractSingleCells(mask,image,channel_names,output):
output = Path(output)

#Read the channels names
channel_names_loaded = pd.read_csv(channel_names,header=None)
#Add a column index for ease
channel_names_loaded.columns = ["marker"]
channel_names_loaded = pd.read_csv(channel_names)
#Convert the channel names to a list
channel_names_loaded = list(channel_names_loaded.marker.values)
channel_names_loaded_list = list(channel_names_loaded.marker_name)

#Check for unique marker names -- create new list to store new names
channel_names_loaded_checked = []
for idx,val in enumerate(channel_names_loaded):
Expand Down

0 comments on commit ae0175c

Please sign in to comment.