Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn committed Jan 16, 2025
1 parent 4dedd5f commit 949ea63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/nuc2seg/cli/segmented_xenium_to_anndata.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ def main():

logger.info(f"Read {len(transcripts)} transcripts and {len(segments)} segments")

transcript_chunk_size = args.chunk_size
segments_chunk_size = args.chunk_size

logger.info(f"Converting transcripts to anndata")

ads = []
for i in tqdm.tqdm(range(0, len(transcripts), transcript_chunk_size)):
for i in tqdm.tqdm(range(0, len(segments), segments_chunk_size)):
ad = convert_transcripts_to_anndata(
transcript_gdf=transcripts[i : i + transcript_chunk_size],
segmentation_gdf=segments,
transcript_gdf=segments[i : i + segments_chunk_size],
segmentation_gdf=transcripts,
min_molecules_per_cell=1,
)
ads.append(ad)
Expand Down

0 comments on commit 949ea63

Please sign in to comment.