seqdepot-to-pfql
Version:
Parse SeqDepot standard output to make it compatible with PFQL
40 lines (34 loc) • 707 B
JavaScript
/* eslint no-magic-numbers: 0 */
const expect = require('chai').expect
const seqdepot2pfql = require('./seqdepot-to-pfql')
describe('seqdepot-to-pfql', function() {
it('should parse das correctly but not interact with anything else', function() {
const input = {
t: {
das: [
[22, 44, 34, 6.61, 5.95e-8],
[229, 253, 239, 5.384, 4.498e-6]
],
tmhmm: [
[20, 42],
[229, 251]
]
}
}
const expected = {
t: {
das: [
['TM', 22, 44, 34, 6.61, 5.95e-8],
['TM', 229, 253, 239, 5.384, 4.498e-6]
],
tmhmm: [
[20, 42],
[229, 251]
]
}
}
const output = seqdepot2pfql(input)
expect(output).eql(expected)
})
})