Closed KatharinaSchmid closed 3 weeks ago
Hi @KatharinaSchmid , Thank you for your question.
Are you using the count matrix generated by cellranger? Recently, I have added one new function for reading the count matrix generated by cellranger.
You may find the demo jupyter notebook useful: demo_GX109_scRNA_RDR_fromcellranger.ipynb
rdr_dir = "./data/rdr_cellranger/"
cell_anno_file = "./data/rdr_cellranger/cell_anno.tsv"
out_dir = "./result/"
RDR_adata = xclone.pp.readrdr_mtx(rdr_dir)
RDR_adata = xclone.pp.extra_anno(
RDR_adata,
cell_anno_file,
barcodes_key = "cell",
cell_anno_key = "cell_type",
sep = "\t"
)
RDR_adata
And for your question about the regions_anno_file
, from the error log (ValueError: Observations annot. var
must have as many rows as X
has columns (17910), but has 17911 rows.) I guess it may come from the column name, which is one row that does not match the dataset.
Bests, Rongting
data_note
is any string you wanna add for this dataset.
By default, it will record the time you creat the dataset.
if data_notes is None:
data_notes = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
else:
data_notes = data_notes + ": " + time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
Xadata.uns["data_notes"] = data_notes
Hey, thanks this was in deed exactly what I was looking for. And it is working now :)
Hi,
thanks for providing this interesting tool. I have problems to run XClone with a count matrix, which was not generated by xcltk. In your documentation for
xclone.pp.xclonedata
, the documentation is missing how the fileregions_anno_file
should look like (and actually also what the parameterdata_notes
is about):When I try a comma-separated file, with the columns described as in your tutorial for the feature annotation, I get an error:
This is the header of the file I try to use for
regions_anno_file
at the moment:Could you explain me how I need to do it instead? Thanks for your help.