Skip to content

Commit 7dbfe70

Browse files
committed
Fix organism resampling for single-cell data
1 parent 313eca0 commit 7dbfe70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reconstruction/create_subsamples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def subsampleCells(organisms):
106106
treatmentSubsample = random.sample(treatmentOrganisms, treatmentSubsampleSize)
107107
organismSubsample.extend(treatmentSubsample)
108108
if args.organism:
109-
subsample = list(itertools.chain(organismCellMap[organism] for organism in organismSubsample))
109+
subsample = list(itertools.chain(*[organismCellMap[organism] for organism in organismSubsample]))
110110
subsamples.append(subsample)
111111
elif args.bothOrganismsAndCells:
112112
# Now that we have a sample of the organisms, take a sample of each selected organism's cells within each cell type

0 commit comments

Comments
 (0)