Class AnnData
- java.lang.Object
-
- ubic.gemma.core.loader.util.anndata.AnnData
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class AnnData extends Object implements Closeable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Layer
getLayer(String layerName)
Obtain a layer by name.List<String>
getLayers()
Obtain all the layer names underlayers/
path.Dataframe<?>
getObs()
<K> Dataframe<K>
getObs(Class<K> indexClass)
Dataframe<?>
getRawVar()
Obtain the rawvar
dataframe if this AnnData object has been filtered.<K> Dataframe<K>
getRawVar(Class<K> indexClass)
Obtain the rawvar
dataframe if this AnnData object has been filtered.Layer
getRawX()
Obtain the rawX
layer if this AnnData object has been filtered.Mapping
getUns()
Obtain additional free-form data stored underuns
.Dataframe<?>
getVar()
<K> Dataframe<K>
getVar(Class<K> indexClass)
Layer
getX()
Obtain the main layer namedX
.static AnnData
open(Path path)
String
toString()
-
-
-
Method Detail
-
open
public static AnnData open(Path path) throws IOException
- Throws:
IOException
-
getObs
public Dataframe<?> getObs()
-
getVar
public Dataframe<?> getVar()
-
getRawX
@Nullable public Layer getRawX()
Obtain the rawX
layer if this AnnData object has been filtered.This, along
getRawVar()
are not part of the on-disk specification, but will be included if the AnnData object has been sliced/filtered. Note that since this is filtered,getRawVar()
should be used to refer to the relevant column annotations.
-
getRawVar
@Nullable public Dataframe<?> getRawVar()
Obtain the rawvar
dataframe if this AnnData object has been filtered.
-
getRawVar
@Nullable public <K> Dataframe<K> getRawVar(Class<K> indexClass)
Obtain the rawvar
dataframe if this AnnData object has been filtered.
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-