Commit 4b5ea94
committed
fix: handle small transcript populations in random_transcripts_contig
Clamp sample size to available count and skip when no mRNA transcripts
exist for a given contig. Fixes CI flake where random.sample() fails
on small simulated contigs.1 parent ff1b9ed commit 4b5ea94
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
0 commit comments