lgonzalez1 commited on
Commit
f6d0cb6
·
1 Parent(s): 3607c74
multi_omics_transcript_expression.py CHANGED
@@ -322,10 +322,10 @@ class TranscriptExpressionHandler(GenomicLRATaskHandler):
322
  split_df = df.loc[df["split"] == split]
323
 
324
  norm_values_df = pd.read_csv(self.normalization_values_csv_file)
325
- m_t = norm_values_df["m_t"]
326
- sigma_t = norm_values_df["sigma_t"]
327
- m_g = norm_values_df["m_g"]
328
- sigma_g = norm_values_df["sigma_g"]
329
 
330
  key = 0
331
  for idx, coordinates_row in split_df.iterrows():
@@ -345,7 +345,6 @@ class TranscriptExpressionHandler(GenomicLRATaskHandler):
345
  negative_strand=negative_strand,
346
  filter_out_sequence_length=self.filter_out_sequence_length,
347
  )
348
- print('ok')
349
  if padded_sequence:
350
  yield key, {
351
  "transcript_id": coordinates_row["transcript_id_gtex"],
 
322
  split_df = df.loc[df["split"] == split]
323
 
324
  norm_values_df = pd.read_csv(self.normalization_values_csv_file)
325
+ m_t = norm_values_df[[f"m_t_{tissue}" for tissue in LABELS_V1]].to_numpy()
326
+ sigma_t = norm_values_df[[f"sigma_t_{tissue}" for tissue in LABELS_V1]].to_numpy()
327
+ m_g = norm_values_df[[f"m_g_{tissue}" for tissue in LABELS_V1]].to_numpy()
328
+ sigma_g = norm_values_df[[f"sigma_g_{tissue}" for tissue in LABELS_V1]].to_numpy()
329
 
330
  key = 0
331
  for idx, coordinates_row in split_df.iterrows():
 
345
  negative_strand=negative_strand,
346
  filter_out_sequence_length=self.filter_out_sequence_length,
347
  )
 
348
  if padded_sequence:
349
  yield key, {
350
  "transcript_id": coordinates_row["transcript_id_gtex"],