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?
I'm trying to apply the same perturbation twice to one subject.
My perturbation dataframe is like below.
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.
This outputs
Is is possible to apply the same perturbation more than once to the same subject?