From b21443001dbde26154166fd24fd738461f7a06e8 Mon Sep 17 00:00:00 2001 From: Michael Yourshaw Date: Fri, 19 Dec 2014 15:21:23 -0800 Subject: [PATCH 1/2] ID as semicolon-separated list --- .idea/.name | 1 + .idea/PyVCF.iml | 8 + .idea/encodings.xml | 4 + .idea/misc.xml | 4 + .idea/modules.xml | 8 + .idea/scopes/scope_settings.xml | 5 + .idea/vcs.xml | 6 + .idea/workspace.xml | 394 ++++++++++++++++++++++++++++++++ 8 files changed, 430 insertions(+) create mode 100644 .idea/.name create mode 100644 .idea/PyVCF.iml create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/scopes/scope_settings.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..2d5903e --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +PyVCF \ No newline at end of file diff --git a/.idea/PyVCF.iml b/.idea/PyVCF.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/PyVCF.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..d821048 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..9a2ead4 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..2eaa94e --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml new file mode 100644 index 0000000..922003b --- /dev/null +++ b/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..079bde6 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,394 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1419029795149 + + + 1419029973005 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From b5595f0f018a827c6ddf286af20f17b18e394d8b Mon Sep 17 00:00:00 2001 From: Michael Yourshaw Date: Fri, 19 Dec 2014 15:22:48 -0800 Subject: [PATCH 2/2] change ID from str to list ID - identifier: Semi-colon separated list of unique identifiers where available. If this is a dbSNP variant it is encouraged to use the rs number(s). No identifier should be present in more than one data record. If there is no identifier available, then the missing value should be used. (String, no white-space or semi-colons permitted) --- vcf/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcf/parser.py b/vcf/parser.py index 1f72b64..7f2eee7 100644 --- a/vcf/parser.py +++ b/vcf/parser.py @@ -543,7 +543,7 @@ def next(self): pos = int(row[1]) if row[2] != '.': - ID = row[2] + ID = row[2].split(';') else: ID = None