File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ def phenotype_data(
267267
268268 # 4. Get metadata for those samples
269269 sample_ids_with_phenotypes = df_phenotypes ["sample_id" ].unique ().tolist ()
270- df_sample_metadata = self .sample_metadata (
270+ df_sample_metadata : pd . DataFrame = self .sample_metadata (
271271 sample_sets = sample_sets ,
272272 sample_query = f"sample_id in { sample_ids_with_phenotypes } " ,
273273 )
@@ -279,7 +279,7 @@ def phenotype_data(
279279
280280 # 6. Apply sample_query if provided
281281 if sample_query is not None :
282- df_merged = self .sample_metadata (
282+ df_merged : pd . DataFrame = self .sample_metadata (
283283 sample_query = sample_query ,
284284 sample_query_options = sample_query_options ,
285285 df = df_merged ,
@@ -319,7 +319,7 @@ def phenotype_binary(
319319 max_cohort_size = max_cohort_size ,
320320 )
321321 binary_series = self ._create_phenotype_binary_series (df )
322- binary_series .index = df ["sample_id" ]
322+ binary_series .index = df ["sample_id" ]. index
323323 return binary_series
324324
325325 def phenotypes (
You can’t perform that action at this time.
0 commit comments