Skip to content

Commit

Permalink
Code clean up (#50)
Browse files Browse the repository at this point in the history
* Update code style, relax travis environment version requirements

* Minor code identation changes

* Restrict r-spatstat=1.64-1 due to mojaveazure/seurat-disk#56 (comment)

* Disable loom-related tests for now in travis
  • Loading branch information
nh3 authored Feb 14, 2022
1 parent 57cada7 commit 7754a38
Show file tree
Hide file tree
Showing 6 changed files with 806 additions and 605 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ before_install:
conda config --add channels defaults;
conda config --add channels bioconda;
conda config --add channels conda-forge;
conda create -q -y -n $TEST_ENV r-seurat=3.1.0 bioconductor-singlecellexperiment bioconductor-loomexperiment=1.2.0 r-reticulate r-devtools scipy=1.2.1 anndata=0.6.19 loompy=2 h5py=2.9.0;
conda create -q -y -n $TEST_ENV bioconductor-singlecellexperiment bioconductor-loomexperiment r-reticulate r-devtools scipy anndata loompy h5py "r-seurat=3" "r-spatstat=1.64_1";
fi

install:
Expand All @@ -50,9 +50,9 @@ script:
-e 'sceasy::convertFormat(srt, from="seurat", to="anndata", outFile="data/pbmc3k-small_seurat3_anndata.h5ad")'
-e 'sce <- sceasy::convertFormat(srt, from="seurat", to="sce", outFile="data/pbmc3k-small_seurat3_sce.rds")'
-e 'sceasy::convertFormat(sce, from="sce", to="anndata", outFile="data/pbmc3k-small_seurat3_sce_anndata.h5ad")'
-e 'sceasy::convertFormat(sce, from="sce", to="loom", outFile="data/pbmc3k-small_seurat3_sce_loom.loom")'
-e 'sceasy::convertFormat("data/pbmc3k-small_seurat3_sce_loom.loom", from="loom", to="anndata", outFile="data/pbmc3k-small_seurat3_sce_loom_anndata.h5ad")'
-e 'sceasy::convertFormat("data/pbmc3k-small_seurat3_sce_loom.loom", from="loom", to="sce", outFile="data/pbmc3k-small_seurat3_sce_loom_sce.rds", main_layer_name="scaled")'
# -e 'sceasy::convertFormat(sce, from="sce", to="loom", outFile="data/pbmc3k-small_seurat3_sce_loom.loom")'
# -e 'sceasy::convertFormat("data/pbmc3k-small_seurat3_sce_loom.loom", from="loom", to="anndata", outFile="data/pbmc3k-small_seurat3_sce_loom_anndata.h5ad")'
# -e 'sceasy::convertFormat("data/pbmc3k-small_seurat3_sce_loom.loom", from="loom", to="sce", outFile="data/pbmc3k-small_seurat3_sce_loom_sce.rds", main_layer_name="scaled")'

cache:
directories:
Expand Down
4 changes: 0 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ Description: Convert Seurat, SingleCellExperiment, Loom object to AnnData object
Depends:
R (>= 3.5.1),
reticulate
Imports:
Seurat (>= 3.0.1),
SingleCellExperiment (>= 1.4.0),
LoomExperiment (>= 1.1.5)
SystemRequirements:
anndata,
loompy
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export(convertFormat)
import(reticulate)
import(Matrix)
Loading

0 comments on commit 7754a38

Please sign in to comment.