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

Funcotator: deal with delimiters in data for output formats #4693

Closed
droazen opened this issue Apr 23, 2018 · 3 comments
Closed

Funcotator: deal with delimiters in data for output formats #4693

droazen opened this issue Apr 23, 2018 · 3 comments
Assignees
Milestone

Comments

@droazen
Copy link
Contributor

droazen commented Apr 23, 2018

Eg., need to escape or otherwise deal with ;, ,, |, etc. characters in datasource values when writing to VCF.

@jonn-smith
Copy link
Collaborator

This needs to happen for MAF too.

We should add a method OutputRenderer::sanitizeField that we can plug into the annotation process that will automatically sanitize each field for illegal characters as they are added to the output. This will require refactoring the OutputRenderer::write method to be concrete with a call to another write method and this sanitizeField method to get the benefits automatically for all OutputRenderers.

@LeeTL1220
Copy link
Contributor

This is done for VCF only when #4838 is merged.

@jonn-smith
Copy link
Collaborator

Need to add for MAF in the \t case.

@jonn-smith jonn-smith changed the title Funcotator: deal with special characters in output formats Funcotator: deal with delimiters in data for output formats Sep 25, 2018
LeeTL1220 added a commit that referenced this issue Sep 26, 2018
…. Added some developer utilities for ease of testing and creating new Funcotations.
LeeTL1220 added a commit that referenced this issue Sep 29, 2018
…rom output. (#5226)

- Added support for `--exclusion-list` parameter, which can be specified multiple times.  This will remove some rendered fields from the output.  The field should appear exactly as written in the output MAF or VCF (e.g. ClinVar_ALLELEID). Closes #4359. 
- Does basic cleaning of field values for MAF.  I.e. cleaning tabs and \n.  Fixes #4693
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants