Skip to content

Commit

Permalink
Unused comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 19, 2021
1 parent 26dc3da commit 1e0643b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
5 changes: 0 additions & 5 deletions packages/core/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,11 +770,6 @@ export async function renameRegionsIfNeeded<
regions: [...(args.regions || [])],
}

// configs can choose to not be associated with the assemblyManager (as with
// the "read assembly" in the read vs ref comparisons) and in this case a
// special flag exists (currently set on the FromConfigSequenceAdapter)
// called noAssemblyManager
// @ts-ignore
if (assemblyName) {
const refNameMap = await assemblyManager.getRefNameMapForAdapter(
adapterConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ test('adapter can fetch sequences', async () => {
expect(featuresArray.length).toBe(1)
expect(featuresArray[0].get('seq')).toBe(features[0].seq.slice(0, 50))

// const result2 = adapter.getFeatures({
// refName: 'ctgA',
// start: 100,
// end: 150,
// })
// const featuresArray2 = await result2.pipe(toArray()).toPromise()
// expect(featuresArray2.length).toBe(1)
// expect(featuresArray2[0].get('seq')).toBe(features[0].seq.slice(100, 150))
const result2 = adapter.getFeatures({
refName: 'ctgA',
start: 5050,
end: 5150,
})
const featuresArray2 = await result2.pipe(toArray()).toPromise()
expect(featuresArray2.length).toBe(1)
expect(featuresArray2[0].get('seq')).toBe(features[0].seq.slice(50, 150))
})

0 comments on commit 1e0643b

Please sign in to comment.