question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a flag to preserve the call.name field

See original GitHub issue

If not using the sample optimized tables, but only using the variant optimized tables, it would be nice for vcf_to_bq to produce a table with the name field in the call record instead of the sample_id.

One can translate the sample_id to the name, and the table with the sample_id is going to be smaller than one with the name (typically), but the SQL complexity and overhead of doing the translation does not seem worthwhile for all users.

Adding a flag, such as --preserve-call-name (boolean) would be one option. That said, it might be nice to allow users to specify what fields they want in the call record. For example:

--call-fields="name,genotype,DP,AD"

The tricky case would be around the sample_id and name and making the most common cases straight-forward. It would be nice not to have to specify a full list of fields just to pick up the call name instead of the sample_id, so I propose the following:

  • All fields, replace sample_id with name:

      --call-fields="name,*"
    
  • All fields, replace name with sample_id (the current default behavior):

      --call-fields="sample_id,*"
    
  • All fields, include both name and sample_id:

      --call-fields="sample_id,name,*"
    

I’m not really sure when someone would use the last option, so I’m not opposed to it being unavailable.

You could make the options SQL-like with the SELECT * EXCEPT syntax, but that feels a bit like overkill.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tneymanovcommented, Oct 1, 2020

This changed was pushed to master in PR #677 and will be included in the next release.

1reaction
tneymanovcommented, Sep 24, 2020

Yes, most probably call.name, to keep consistency with v1 schema.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set categories, flags, reminders, or colors - Microsoft Support
In Outlook, you can add a flag, set a reminder for a flagged email, and assign a color category to an email message...
Read more >
Add Country Flags to Your CRM Phone Fields for Quick ...
Conveniently convert your CRM phone field with country flags to quickly identify where your contacts are located.
Read more >
How To Use the Flag Package in Go - DigitalOcean
Flags are key-value delimited strings added after the name of the command. ... Add the following code to the file to create the...
Read more >
Flag emails in Mail on Mac - Apple Support
Type a flag name in the search field, then select the suggestion in the Flags category. Or type “flag,” then choose the suggestion...
Read more >
Flag an issue | Jira Software Cloud - Atlassian Support
The flag for an issue is stored in a custom checkbox field called "Flagged", which has only one value: Impediment. Use the JQL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found