Skip to content

Slingshot method does not detect groups_id and dimred prior information #162

@jma1991

Description

@jma1991

I am trying to run Slingshot (latest master build) with prior information (groups_id and dimred) however neither of these arguments are detected by the relevant method:

mod <- infer_trajectory(dat, ti_slingshot(), give_priors = c("groups_id", "dimred"), verbose = TRUE, debug = TRUE)
Executing 'slingshot' on '20200328_223607__data_wrapper__f5hbVLafKb'
With parameters: list(cluster_method = "pam", ndim = 20L, shrink = 1L, reweight = TRUE,     reassign = TRUE, thresh = 0.001, maxit = 10L, stretch = 2L,     smoother = "smooth.spline", shrink.method = "cosine")
inputs: expression
priors : 
Input saved to /tmp/folders/5r/s597hc5j3w93_x8_tn57w3g80000gn/T//RtmpLdSW89/file44e357c0b05f/ti
Running method using babelwhale
Use this command to enter the container: 
/usr/local/bin/docker run --entrypoint bash --rm -it --name 20200328_225620__container__Eg6EyZfTQZ -e TMPDIR=/tmp2 --workdir /ti/workspace -v /tmp/folders/5r/s597hc5j3w93_x8_tn57w3g80000gn/T//RtmpLdSW89/file44e357c0b05f/ti:/ti -v /tmp/folders/5r/s597hc5j3w93_x8_tn57w3g80000gn/T//RtmpLdSW89/file44e32b7b59fb/tmp:/tmp2 dynverse/ti_slingshot:v1.0.3
Running /usr/local/bin/docker run --entrypoint bash --rm --name 20200328_225620__container__Eg6EyZfTQZ -e \
  'TMPDIR=/tmp2' --workdir /ti/workspace -v \
  '/tmp/folders/5r/s597hc5j3w93_x8_tn57w3g80000gn/T//RtmpLdSW89/file44e357c0b05f/ti:/ti' -v \
  '/tmp/folders/5r/s597hc5j3w93_x8_tn57w3g80000gn/T//RtmpLdSW89/file44e32b7b59fb/tmp:/tmp2' \
  'dynverse/ti_slingshot:v1.0.3'
Output saved to /tmp/folders/5r/s597hc5j3w93_x8_tn57w3g80000gn/T//RtmpLdSW89/file44e357c0b05f/ti/output.h5
Attempting to read in output with hdf5

The ti_slingshot.R code itself can handle these two arguments being passed into the function: https://github.com/dynverse/ti_slingshot/blob/master/package/R/ti_slingshot.R

I wonder if it's because neither of these arguments is listed in the "wrapper_input_optional" field for the method:

subset(dynmethods::methods, method_id == "slingshot")$wrapper_input_optional
[[1]]
[1] "start_id" "end_id"

Thanks,
James

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions