Skip to content

Check sample uniqueness in the accucor loader script #66

@hepcat72

Description

@hepcat72

BUG DESCRIPTION

Problem

Issue #45's requirements include a requirement that the sample names must be unique. In the Issue Owner / Requirements section, it says as one of the requirements for the script (i.e. not an assumption):

sample names are unique with the file

PR #55 did not implement this requirement from the associated issue. It is unclear what will happen in the code if a sample name in the column headers of an accucor output file is not unique (whether the data beneath it is the same or different).

Steps to reproduce

  1. Take an existing accucor output file. Copy two of the sample name column headers and paste them over top of other existing column headers of different columns (containing different data)
  2. Run the accucor data loader script

Current behavior

Unknown

Expected behavior

The data should not load and an error should be printed indicating the duplicate sample names and the column numbers with a message that sample names must be unique.

Suggested Change

Check the uniqueness of the sample names in the data validation step.

Comment

Originally posted by @hepcat72 in #55 (comment)

B. There's no check in here about the per-file uniqueness of the sample names, which was mentioned as a requirement in the issue (although perhaps I inferred that - either way, I think it probably should be checked).


ISSUE OWNER SECTION

Assumptions

  • List of assumptions made WRT the code
  • E.g. We will assume input is correct (explaining why there is no validation)

Requirements

  • List of conditions to be met for the feature
  • E.g. Every column/row must display a value, i.e. cannot be empty

Limitations

  • A list of things this work will not fix
  • E.g. Getting edge case X to work requires too much effort and will not be
    fixed in this effort.

Affected/Changed Components

  • Files
  • Environment variables
  • External executables
  • Database tables
  • Cron job settings
  • Etc.

DESIGN

GUI Change description

Describe changes the user will see.

Code Change Description (Pseudocode optional)

Describe code changes planned for the fix.

Tests

A test should be planned for each requirement (above), where possible.

Metadata

Metadata

Assignees

Labels

type:bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions