Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSERV-607 Adding 'assayed by' column to allele-frequencies endpoint #313

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/routers/datatypeRouters/nodes/variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,11 +524,14 @@ async function variantsAllelesAggregation (input: paramsFormatType): Promise<any
record.annotations.af_eas,
record.annotations.af_fin,
record.annotations.af_nfe,
record.annotations.af_sas
record.annotations.af_sas,
'whole genome sequencing'
]
`

const header = ['chr', 'pos', 'afr', 'ami', 'amr', 'asj', 'eas', 'fin', 'nfe', 'sas']
// currently all GNOMAD annotations were assayed by "whole genome sequencing"

const header = ['chr', 'pos', 'afr', 'ami', 'amr', 'asj', 'eas', 'fin', 'nfe', 'sas', 'assayed by']

const alleles = await (await db.query(query)).all()

Expand Down