Skip to content

Applying the model from one sample to another #50

@camelest

Description

@camelest

Hi, thank you so much for the wonderful tool.

I'm trying to integrate several samples together following the discussion of #33 but still gets some sample-specific factors that are a bit hard to be interpreted.

Do you think it makes sense to apply the model obtained from sampleA to sampleB?
I was hoping one of the below would work:

  1. Project sampleA-fit model to sampleB by ficture transfrom
ficture transform --input ${sampleB}_gene.tsv.gz --output_pref ${sampleB}/analysis/nF40.d_15/nF40.d_15.prj_15.r_4.0 \
   --model ${sampleA}/analysis/nF40.d_15/nF40.d_15.model.p --key Count --major_axis X --hex_width 15 --n_move 3 \
   --min_ct_per_unit 20 --mu_scale 1.0 --thread 20 --precision 2
  1. Use the model file from sampleA as a pseudo-bulk count by init_model_from_pseudobulk followed by ficture choose_color etc.
    (Will this make any difference from option#1?)
ficture init_model_from_pseudobulk --input ${sampleB}/hexagon.d_15.tsv.gz  --output ${output} \
    --feature ${sampleB}_gene.tsv.gz --epoch 0 --scale_model_rel -1 \
    --reorder_factors --model ${sampleA}.model_matrix.tsv.gz \
    --key Count --thread 8 --min_ct_per_feature 20

Thank you very much in advance!

Best,

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