Skip to content

Variant Search sort on position #272

@bbimber

Description

@bbimber

Within the genome, we have chromosome plus position, which are independent fields. From a human perspective, sorting on "position" most logically means the combination of chromosome + position, where chromosome establishes a sort order. To facilitate this, we already compute a "genomePosition" field, which creates a single numeric series to order positions in the "human correct" order.

When the user tries to sort the variant search results on position, I think we should silently use genomicPosition as the actual sort field. Otherwise sorting on position gives weird results like:

Chrom1 1
Chrom2 1
Chrom3 1
....
Chrom1 2
Chrom2 2
Chrom3 2

We could either handle this client-side, or look for this string server-side. I cant think of a reason either is better or worse. I wonder if the chromosome/contig field should have the same behavior.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions