Skip to content

color scheme for mapping quality #4244

Answered by cmdcolin
yeeus asked this question in Q&A
Discussion options

You must be logged in to vote

hi there, it is a bit tricky because we don't properly have legends on our tracks. essentially the color is a HSL map

the function that does it is

export function colorByMappingQuality(feature: Feature) {
  return `hsl(${feature.get('score')},50%,50%)`
}

where score is the "MAPQ" value, and the value in practice ranges from about 0-100 (high quality illumina reads that i see have mapq of about 70)

so an example legend showing 0-100 mapq is here

hope that helps, we will keep the concept of adding legends on the radar so that it is not so unclear

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cmdcolin
Comment options

Answer selected by yeeus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants