Skip to content

Applying the same perturbation more than once to the same subject #12

@couunderbarz

Description

@couunderbarz

I'm trying to apply the same perturbation twice to one subject.
My perturbation dataframe is like below.

name start end subject
Vancomycin 12 24 1
Vancomycin 12 24 2
Vancomycin 36 48 1
Vancomycin 36 48 2

However, it seems that MDSINE2 only considers the later one. ( https://github.com/gerberlab/MDSINE2/blob/master/mdsine2/pylab/base.py#L2338-L2339 )
In the above example, the study object only has the perturbations that start at 36 and end at 48, and the perturbations that start at 12 and end at 24 disappear.

for pert in study.perturbations:
    print(pert)

This outputs

Perturbation Vancomycin:
	Subject 1: (36, 48)
	Subject 2: (36, 48)

Is is possible to apply the same perturbation more than once to the same subject?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions