File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ def subsampleCells(organisms):
92
92
subsetSubsampleSize = round (args .proportion * len (matchingCellIndices ))
93
93
subsetSubsample = random .sample (matchingCellIndices , subsetSubsampleSize )
94
94
subsample .extend (subsetSubsample )
95
+ subsample .sort ()
95
96
subsamples .append (subsample )
96
97
return subsamples
97
98
@@ -107,6 +108,7 @@ def subsampleCells(organisms):
107
108
organismSubsample .extend (treatmentSubsample )
108
109
if args .organism :
109
110
subsample = list (itertools .chain (* [organismCellMap [organism ] for organism in organismSubsample ]))
111
+ subsample .sort ()
110
112
subsamples .append (subsample )
111
113
elif args .bothOrganismsAndCells :
112
114
# Now that we have a sample of the organisms, take a sample of each selected organism's cells within each cell type
@@ -131,6 +133,7 @@ def subsampleCells(organisms):
131
133
treatmentSubsampleSize = round (args .proportion * len (treatmentOrganismIndices ))
132
134
treatmentSubsample = random .sample (treatmentOrganismIndices , treatmentSubsampleSize )
133
135
subsample .extend (treatmentSubsample )
136
+ subsample .sort ()
134
137
subsamples .append (subsample )
135
138
136
139
subsampleFile = open (args .subsampleFile , "w" )
You can’t perform that action at this time.
0 commit comments