compbio-UofT / medsavant

MedSavant is a search engine for genetic variants
22 stars 9 forks source link

Multiple VCFs with the same DNA ID #301

Open ronammar opened 10 years ago

ronammar commented 10 years ago

How do we deal with this? If the DNA ID already exists in the DB, when a new VCF is uploaded, can we tack on a suffix to the ID so that we can store multiple VCFs with the same ID without an internal DNA ID conflict? Is this done already?

mfiume commented 10 years ago

Bumping this. @jvlasblom, can you add a test that adds two files with the same ID (uploading the same file twice will suffice). It should import both, but not create a new patient the second time.

jvlasblom commented 10 years ago

ok, will add it to my test cases.

On Thu, Mar 27, 2014 at 5:45 PM, mfiume notifications@github.com wrote:

Bumping this. Jim, can you add a test that adds two files with the same ID (uploading the same file twice will suffice). It should import both, but not create a new patient the second time.

Reply to this email directly or view it on GitHubhttps://github.com/compbio-UofT/medsavant/issues/301#issuecomment-38864796 .

jvlasblom commented 10 years ago

I manually tested and it looks fine: the VCF is imported both times, but there is only one patient in the patient directory.

ronammar commented 10 years ago

What if the same DNA ID represents different patients. For example: GATK outputs “sample” in the standard unifiedgenotyper call when not given a specific sample ID. I think it’s a false assumption that the DNA IDs are uniquely identifying the same patient. Christian didn’t know what a DNA ID was until I showed him, and he’s a knowledgeable user.

On Apr 1, 2014, at 2:40 PM, jvlasblom notifications@github.com<mailto:notifications@github.com> wrote:

I manually tested and it looks fine: the VCF is imported both times, but there is only one patient in the patient directory.

— Reply to this email directly or view it on GitHubhttps://github.com/compbio-UofT/medsavant/issues/301#issuecomment-39242280.

jvlasblom commented 10 years ago

OK, so we'll need to setup the dialog we talked about showing a dropdown, one per VCF per DNA ID, and allow them to select an existing patient or 'New Patient'. If they select 'New Patient', we assign that patient a generated DNA ID by default, but also allow the user to override it. (e.g. a prepopulated JTextField)

Is this a 1.2 issue?

On 01/04/14 02:45 PM, ronammar wrote:

What if the same DNA ID represents different patients. For example: GATK outputs “sample” in the standard unifiedgenotyper call when not given a specific sample ID. I think it’s a false assumption that the DNA IDs are uniquely identifying the same patient. Christian didn’t know what a DNA ID was until I showed him, and he’s a knowledgeable user.

On Apr 1, 2014, at 2:40 PM, jvlasblom notifications@github.com<mailto:notifications@github.com> wrote:

I manually tested and it looks fine: the VCF is imported both times, but there is only one patient in the patient directory.

— Reply to this email directly or view it on GitHubhttps://github.com/compbio-UofT/medsavant/issues/301#issuecomment-39242280.

— Reply to this email directly or view it on GitHub https://github.com/compbio-UofT/medsavant/issues/301#issuecomment-39242957.

ronammar commented 10 years ago

Yah exactly. 1.3 for sure - this is a big update and we’re on a 1.2 feature freeze.

On Apr 1, 2014, at 2:58 PM, jvlasblom notifications@github.com<mailto:notifications@github.com> wrote:

OK, so we'll need to setup the dialog we talked about showing a dropdown, one per VCF per DNA ID, and allow them to select an existing patient or 'New Patient'. If they select 'New Patient', we assign that patient a generated DNA ID by default, but also allow the user to override it. (e.g. a prepopulated JTextField)

Is this a 1.2 issue?

On 01/04/14 02:45 PM, ronammar wrote:

What if the same DNA ID represents different patients. For example: GATK outputs “sample” in the standard unifiedgenotyper call when not given a specific sample ID. I think it’s a false assumption that the DNA IDs are uniquely identifying the same patient. Christian didn’t know what a DNA ID was until I showed him, and he’s a knowledgeable user.

On Apr 1, 2014, at 2:40 PM, jvlasblom notifications@github.com<mailto:notifications@github.commailto:notifications@github.com> wrote:

I manually tested and it looks fine: the VCF is imported both times, but there is only one patient in the patient directory.

— Reply to this email directly or view it on GitHubhttps://github.com/compbio-UofT/medsavant/issues/301#issuecomment-39242280.

— Reply to this email directly or view it on GitHub https://github.com/compbio-UofT/medsavant/issues/301#issuecomment-39242957.

— Reply to this email directly or view it on GitHubhttps://github.com/compbio-UofT/medsavant/issues/301#issuecomment-39244428.

jvlasblom commented 10 years ago

Moved to future milestone.

mfiume commented 10 years ago

You can use the new Editable Fields that I made. It allows a field to show text as a JLabel but on click it gets converted to a JTextField for editing. See PatientView.java for use case.