Skip to content

Commit

Permalink
limit drag
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankbrgowda committed May 21, 2024
1 parent fab7a32 commit 4f16017
Showing 1 changed file with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ export class CanonicalGeneGlyph extends Glyph {
if (feature.type === 'CDS') {
const parentFeature = this.getParentFeature(feature, topLevelFeature)
const cdsLocs = this.getDiscontinuousLocations(parentFeature, feature)
const { cdsLocations } = feature
const { cdsLocations } = parentFeature

console.log('cdsLocs', cdsLocs)
console.log('parentFeature type', parentFeature.type)

Check warning on line 373 in packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/glyphs/CanonicalGeneGlyph.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement
console.log('cdsLocations', cdsLocations)

Check warning on line 374 in packages/jbrowse-plugin-apollo/src/LinearApolloDisplay/glyphs/CanonicalGeneGlyph.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement

for (const cdsLoc of cdsLocs) {
Expand Down Expand Up @@ -857,16 +857,22 @@ export class CanonicalGeneGlyph extends Glyph {
discontinuousLocation,
exonCDSRelations,
)
if (nextExon && bp >= nextExon.min - 1) {
// if (nextExon && bp >= nextExon.min - 1) {
// return
// }
// if (prevExon && bp <= prevExon.max + 1) {
// return
// }
// if (!prevExon && nextExon && matchingExon && bp < matchingExon.min) {
// return
// }
// if (prevExon && !nextExon && matchingExon && bp > matchingExon.max) {
// return
// }
if (matchingExon && bp < matchingExon.min) {
return
}
if (prevExon && bp <= prevExon.max + 1) {
return
}
if (!prevExon && nextExon && matchingExon && bp < matchingExon.min) {
return
}
if (prevExon && !nextExon && matchingExon && bp > matchingExon.max) {
if (matchingExon && bp > matchingExon.max) {
return
}
if (
Expand Down

0 comments on commit 4f16017

Please sign in to comment.