Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Nov 20, 2024
1 parent 68ae62c commit a6460f5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/genomicarrays/GenomicArrayDataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,21 +282,16 @@ def get_slice(
if not isinstance(feature_subset, (int, slice)):
raise TypeError("feature indices must be continous; either a 'slice' or 'int' index.")
_fsubset = self.get_feature_subset(feature_subset)
print(_fsubset)
start_findex = _fsubset["genarr_feature_start_index"].astype(int).min()
end_findex = _fsubset["genarr_feature_end_index"].astype(int).max()

print(start_findex, end_findex)

# expand intervals
final_rows = []
for row in _fsubset.itertuples():
for i, _ in enumerate(range(int(row.genarr_feature_start_index), int(row.genarr_feature_end_index))):
final_rows.append(row._replace(starts=i + row.starts, ends=i + row.starts + 1))
_feature_df = pd.DataFrame(final_rows)

print(_feature_df)

_msubset = self.get_matrix_subset((list(range(start_findex, end_findex)), _sample_indices))

return GenomicArrayDatasetSlice(
Expand Down

0 comments on commit a6460f5

Please sign in to comment.