Skip to content

Gene rule reads only the gene part and never cuts a coordinate - #22

Merged
YPARK merged 1 commit into
mainfrom
gene-rule-first-segment
Oct 2, 2026
Merged

YPARK merged 1 commit into
mainfrom
gene-rule-first-segment

Conversation

@YPARK

@YPARK YPARK commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

The gene rule looked at the whole row name, so compound rows whose coordinate sits on a contig with _ were cut at the contig name: chr1_CTG_random:12345/baf/alt was keyed on random:12345/baf/alt, and ENSG_GENE1/m6a/chr1_CTG_random:123/methylated likewise.

  • The rule now reads only a row's first /-segment (its gene part) and keeps the rest as written: ENSG_GENE1/count/spliced still becomes GENE1/count/spliced.
  • A gene part that is a coordinate, a position chr:pos or a locus chr:start-end (legume-genomic-types 0.5.2 is_region), is left whole.
  • Mixed axes use the same rule after the locus key.

Version 0.7.1.

The gene rule looked at the whole row name, so compound rows whose
coordinate sits on a contig with '_' were cut at the contig name:
chr1_CTG_random:12345/baf/alt was keyed on random:12345/baf/alt, and a
site row ENSG_GENE1/m6a/chr1_CTG_random:123/methylated likewise.

It now reads only a row's first '/'-segment, its gene part, and keeps
the rest as written. A gene part that is a coordinate, a position
chr:pos or a locus chr:start-end (legume-genomic-types is_region), is
left whole. Mixed axes take the same rule. Release 0.7.1.
@YPARK
YPARK merged commit e2e15ad into main Oct 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant