-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add an option to include call name in BQ table. #677
Add an option to include call name in BQ table. #677
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for a couple of nits.
Thanks Tural!
name=bigquery_util.ColumnKeyConstants.CALLS_NAME, | ||
type=bigquery_util.TableFieldConstants.TYPE_STRING, | ||
mode=bigquery_util.TableFieldConstants.MODE_NULLABLE, | ||
description='Name of the call.')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about this:
'Name of the call (sample names in the VCF Header line).'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
parser.add_argument( | ||
'--include_call_name', | ||
type='bool', default=False, nargs='?', const=True, | ||
help=('Add raw sample name as a separate column in sample record.')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about:
''Add raw sample name (from VCF Header line) as a subfield under the call column in addition to sample_id.''
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -56,6 +57,7 @@ def __init__( | |||
numeric (float/int/long) lists. For instance, [0, None, 1] will become | |||
[0, `null_numeric_value_replacement`, 1]. If not set, the value will set | |||
to bigquery_util._DEFAULT_NULL_NUMERIC_VALUE_REPLACEMENT. | |||
include_call_name: If true, sample name will be included with sample ID. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/with/in addition to/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -89,6 +90,7 @@ def __init__( | |||
numeric (float/int/long) lists. For instance, [0, None, 1] will become | |||
[0, `null_numeric_value_replacement`, 1]. If not set, the value will set | |||
to bigquery_util._DEFAULT_NULL_NUMERIC_VALUE_REPLACEMENT. | |||
include_call_name: If true, sample name will be included with sample ID. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/with/in addition to/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Saman.
Addressed the comments.
name=bigquery_util.ColumnKeyConstants.CALLS_NAME, | ||
type=bigquery_util.TableFieldConstants.TYPE_STRING, | ||
mode=bigquery_util.TableFieldConstants.MODE_NULLABLE, | ||
description='Name of the call.')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -56,6 +57,7 @@ def __init__( | |||
numeric (float/int/long) lists. For instance, [0, None, 1] will become | |||
[0, `null_numeric_value_replacement`, 1]. If not set, the value will set | |||
to bigquery_util._DEFAULT_NULL_NUMERIC_VALUE_REPLACEMENT. | |||
include_call_name: If true, sample name will be included with sample ID. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
parser.add_argument( | ||
'--include_call_name', | ||
type='bool', default=False, nargs='?', const=True, | ||
help=('Add raw sample name as a separate column in sample record.')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -89,6 +90,7 @@ def __init__( | |||
numeric (float/int/long) lists. For instance, [0, None, 1] will become | |||
[0, `null_numeric_value_replacement`, 1]. If not set, the value will set | |||
to bigquery_util._DEFAULT_NULL_NUMERIC_VALUE_REPLACEMENT. | |||
include_call_name: If true, sample name will be included with sample ID. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
d61d861
to
1d649d9
Compare
No description provided.