-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
1,576 additions
and
92,898 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ block-pack/ | |
dev/ | ||
work/ | ||
.test_auth.json | ||
.turbo | ||
vite.config.*.timestamp-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
publish-branch=main | ||
link-workspace-packages=false | ||
workspace-concurrency=1 | ||
include-workspace-root=true | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
import { test } from 'vitest'; | ||
import { Qc } from './qc'; | ||
|
||
test('test simple qc parsing', ({ expect }) => { | ||
const qc: any = [ | ||
{ | ||
step: 'align', | ||
status: 'OK', | ||
check: { | ||
type: 'SuccessfullyAlignedReads', | ||
upper: 0.85, | ||
middle: 0.7, | ||
label: 'Successfully aligned reads' | ||
}, | ||
payload: { | ||
printedValue: '90.0%', | ||
value: 0.9 | ||
} | ||
}, | ||
{ | ||
step: 'align', | ||
status: 'OK', | ||
check: { | ||
type: 'OffTargetReads', | ||
upper: 0.2, | ||
middle: 0.1, | ||
label: 'Off target (non TCR/IG) reads' | ||
}, | ||
payload: { | ||
printedValue: '0.0%', | ||
value: 0.0 | ||
} | ||
}, | ||
{ | ||
step: 'align', | ||
status: 'OK', | ||
check: { | ||
type: 'ReadsWithNoVOrJHits', | ||
upper: 0.2, | ||
middle: 0.1, | ||
label: 'Reads with no V or J hits' | ||
}, | ||
payload: { | ||
printedValue: '10.0%', | ||
value: 0.1 | ||
} | ||
}, | ||
{ | ||
step: 'assemble', | ||
status: 'ALERT', | ||
check: { | ||
type: 'ReadsUsedInClonotypes', | ||
upper: 0.9, | ||
middle: 0.7, | ||
label: 'Reads used in clonotypes' | ||
}, | ||
payload: { | ||
printedValue: '40.0%', | ||
value: 0.4 | ||
} | ||
}, | ||
{ | ||
step: 'assemble', | ||
status: 'OK', | ||
check: { | ||
type: 'AlignmentsWithNoAssemblingFeature', | ||
upper: 0.15, | ||
middle: 0.05, | ||
label: 'Alignments without assembling feature' | ||
}, | ||
payload: { | ||
labelOverride: 'Alignments that do not cover CDR3', | ||
printedValue: '0.0%', | ||
value: 0.0 | ||
} | ||
}, | ||
{ | ||
step: 'assemble', | ||
status: 'OK', | ||
check: { | ||
type: 'AlignmentsDroppedLowQuality', | ||
upper: 0.05, | ||
middle: 0.01, | ||
label: 'Alignments dropped due to low sequence quality' | ||
}, | ||
payload: { | ||
printedValue: '0.0%', | ||
value: 0.0 | ||
} | ||
}, | ||
{ | ||
step: 'assemble', | ||
status: 'OK', | ||
check: { | ||
type: 'ClonesDroppedInPostFiltering', | ||
upper: 0.05, | ||
middle: 0.01, | ||
label: 'Clones dropped in post-filtering' | ||
}, | ||
payload: { | ||
printedValue: '0.0%', | ||
value: 0.0 | ||
} | ||
}, | ||
{ | ||
step: 'assemble', | ||
status: 'OK', | ||
check: { | ||
type: 'AlignmentsDroppedInPostFiltering', | ||
upper: 0.05, | ||
middle: 0.01, | ||
label: 'Alignments dropped in clones post-filtering' | ||
}, | ||
payload: { | ||
printedValue: '0.0%', | ||
value: 0.0 | ||
} | ||
}, | ||
{ | ||
step: 'align', | ||
status: 'ALERT', | ||
check: { | ||
type: 'OverlappedReadsMoreBetter', | ||
upper: 0.9, | ||
middle: 0.8, | ||
label: 'Overlapped paired-end reads' | ||
}, | ||
payload: { | ||
printedValue: '10.0%', | ||
value: 0.1 | ||
} | ||
} | ||
]; | ||
Qc.parse(qc); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { z } from 'zod'; | ||
|
||
export const QcStatus = z.union([z.literal('OK'), z.literal('WARN'), z.literal('ALERT')]); | ||
|
||
export const QcCheck = z.object({ | ||
type: z.string(), | ||
upper: z.number().optional(), | ||
middle: z.number().optional(), | ||
label: z.string() | ||
}); | ||
export type QcCheck = z.infer<typeof QcCheck>; | ||
|
||
export const QcCheckResult = z.object({ | ||
step: z.string(), | ||
status: QcStatus, | ||
check: QcCheck, | ||
payload: z.object({ | ||
printedValue: z.coerce.string().optional(), | ||
value: z.coerce.string().optional(), | ||
labelOverride: z.coerce.string().optional() | ||
}) | ||
}); | ||
export type QcCheckResult = z.infer<typeof QcCheckResult>; | ||
|
||
export const Qc = z.array(QcCheckResult); | ||
export type Qc = z.infer<typeof Qc>; |
Oops, something went wrong.