Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed May 19, 2022
1 parent abf9bff commit c6f9b84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions plugins/alignments/src/BamAdapter/MismatchParser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,11 @@ test('clipping', () => {

test('getNextRefPos test 1', () => {
const cigar = parseCigar('10S10M1I4M1D15M')
console.log({ cigar })
const iter = getNextRefPos(cigar, [5, 10, 15, 20, 25, 30, 35])
expect([...iter]).toEqual([0, 5, 15, 20, 25])
})
test('getNextRefPos test 2', () => {
const cigar = parseCigar('10S15M')
console.log({ cigar })
const iter = getNextRefPos(cigar, [5, 10, 15])
expect([...iter]).toEqual([0, 5])
})
Expand Down
4 changes: 2 additions & 2 deletions plugins/alignments/src/BamAdapter/MismatchParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export function getModificationPositions(
for (let j = 0; j < types.length; j++) {
const type = types[j]
let i = 0
let positions = []
const positions = []
for (let k = 0; k < skips.length; k++) {
let delta = +skips[k]
do {
Expand All @@ -305,7 +305,7 @@ export function getModificationPositions(
}
i++
} while (delta >= 0 && i < seq.length)
if (i >= seq.length) console.log('ran out of sequence')

const temp = i - 1
positions.push(fstrand === -1 ? seq.length - 1 - temp : temp)
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/alignments/src/PileupRenderer/PileupRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export default class PileupRenderer extends BoxRendererType {
props: RenderArgsDeserializedWithFeaturesAndLayout,
) {
const { feature, topPx, heightPx } = layoutFeature
const { regionSequence, modificationTagMap = {} } = props
const { modificationTagMap = {} } = props

const mm = (getTagAlt(feature, 'MM', 'Mm') as string) || ''

Expand Down

0 comments on commit c6f9b84

Please sign in to comment.