Skip to content

Qs re: simpleaf flex-quant #193

@HelenaLC

Description

@HelenaLC

More of a couple Qs than issues...

  • I'm wanting to run cellbender post simpleaf, which would require an .h5(ad) (I think). I see mention of an --anndata-out flag for simpleaf quant but it appears to not exist (yet?) for simpleaf flex-quant, is that right?

  • I tried both without --index (defaults) and with it (running simpleaf index with a --probe-csv from previous CellRanger runs on the same data). Both don't work (...see below...), but not sure how to get symbols going?

    • One doesn't give me gene symbols, and I end up with DEPRACATED_ENSG000... in the output.
    • Two complains with Error: When providing --index, a t2g map is also needed. Place probe_t2g.tsv in the index directory, or provide --probe-set. (there is only a t2g_3col.tsv).

Any suggestions greatly appreciated and big thanks in advance :))

Just in case, this is how I tried to run this (first ever attempt, so sorry if I'm missing the obvious...):

PRJ="path/to/project"
DIR=$PRJ/data
IDX=$DIR/af_idx
SUB=$DIR/SCGRES_102
PAT="TS_A7" # split pools?
NTH=4

# this didn't help, though this contains gene symbols...
#simpleaf index --use-piscem --output $IDX --threads 40 --probe-csv probes.csv

export ALEVIN_FRY_HOME="$DIR/af_home"
simpleaf set-paths
ulimit -n 2048

r1="$(find -L $SUB -name "${PAT}*_R1_*" -type f | sort | paste -sd, -)"
r2="$(find -L $SUB -name "${PAT}*_R2_*" -type f | sort | paste -sd, -)"

simpleaf flex-quant \
  --chemistry 10x-flexv1-gex-3p \
  --output $SUB/$PAT \
  --organism human \
  --reads1 $r1 \
  --reads2 $r2 \
  -t $NTH
  #--index $IDX

simpleaf --version
# simpleaf 0.21.1

# ...and then sth annoying like...
# (pseudo-code)

# R
se = fishpond::loadFry("af_quant")
ad = anndataR::as_AnnData(se)
ad$write_h5ad("raw.h5ad")

# shell
cellbender remove-background \
      --input raw.h5ad \
      --output fil.h5 \
      --checkpoint ckpt.tar.gz \
      --expected-cells 40000 \
      --checkpoint-mins 30
      --cpu-threads 40

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