Skip to content

derived sample_names cannot be modified #439

@khoroshevskyi

Description

@khoroshevskyi

The sample_name in PEPhub can be derived and modified in the config file.

Unfortunately, because of this, if sample_name does not exist in the sample table, modifying of the project becomes impossible.
An exception occurs when trying to retrieve the sample name from a sample table that was not initialized by peppy. The error is happening in pepdbagent.

Image

Example pep:

pep_version: 2.1.0
sample_table: samples.csv
name: cm4ai_images
description: ''
sample_modifiers:
  append:
    sample_name: key
  derive:
    attributes:
    - sample_name
    sources:
      key: '{Gene_Name}_{Treatment}'

csv file:

AntibodyID sample_name ENSEMBLID Gene_Name Treatment PlateID Well
CAB005042 1 ens123 EIF5A Paclitaxel 3 C2
CAB005042 2 ens124 EIF5A Vorinostat 3 C2
CAB005042 3 ens125 EIF5A untreated 3 C2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions