Combine velocyto loom data with AnnData
mergeVelocytoWithGEX.Rd
mergeVelocytoWithGEX
merges the velocyto spliced/unspliced gene counts with the AnnData object holding single-cell gene expression data.
This is the preprocessing function before calculating RNA velocity using the python scVelo package and workflow.
Arguments
- anndata_file
filename pointing to the AnnData file containing gene expression data.
- loom_file,
character, name of the new loom file to be written out containing the merged data
- anndata_out_filename
output filename of the merged AnnData object to be written containing both the velocyto data and the gene expression data.
- conda_env
character, if not
NULL
this named conda environment is used to perform the merge. (Default: 'scicsr'). IfNULL
, no conda environment will be used, the program assumes the python packagesscanpy
andscvelo
are installed in the local python)
Value
a output message indicating success of writing out the merged AnnData object into the file given by anndata_out_filename
.
Details
mergeVelocytoWithGEX
uses the R reticulate package to run python commands which merge the velocyto counts with the anndata object.
It is assumed that the cell barcodes in the velocyto loom and the anndata object matches up. Please consult guessBarcodes
and combineLoomFiles
first to ensure these barcodes do match up.