public class EncoderUtils extends Object
StructureDataInterface
into a format useable by
the MmtfStructure
.Modifier and Type | Field and Description |
---|---|
static int |
NULL_PARAM
The Null parameter for encoding (i.e.
|
Constructor and Description |
---|
EncoderUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
encodeByteArr(CharCodecs inputCodec,
char[] inputData,
int param)
Method to prepend a byte array with a byte.
|
static byte[] |
encodeByteArr(FloatCodecs inputCodec,
float[] inputData,
int param)
Method to prepend a byte array with a byte.
|
static byte[] |
encodeByteArr(IntCodecs inputCodec,
int[] inputData,
int param)
Method to prepend a byte array with a byte.
|
static byte[] |
encodeByteArr(StringCodecs inputCodec,
String[] inputData,
int param)
Method to prepend a byte array with a byte.
|
static List<BioAssemblyData> |
generateBioassemblies(StructureDataInterface structureDataInterface)
Find the bioassembly information as a list from the
StructureDataInterface . |
static Entity[] |
generateEntityList(StructureDataInterface structureDataInterface)
Generate the entity level information from the
StructureDataInterface . |
static Group[] |
generateGroupList(StructureDataInterface structureDataInterface)
Regenerate a group map from the
StructureDataInterface . |
static String |
getTypeFromChainId(StructureDataInterface structureDataInterface,
int chainInd)
Get the type of a given chain index.
|
static void |
transferBioassembly(StructureDataInterface structureDataInterface,
AdapterToStructureData adapterToStructureData)
Transfer bioassembly data from a
StructureDataInterface to an AdapterToStructureData . |
public static final int NULL_PARAM
public static Group[] generateGroupList(StructureDataInterface structureDataInterface)
StructureDataInterface
.structureDataInterface
- the input interfacepublic static List<BioAssemblyData> generateBioassemblies(StructureDataInterface structureDataInterface)
StructureDataInterface
.structureDataInterface
- the interface from where to find the datapublic static Entity[] generateEntityList(StructureDataInterface structureDataInterface)
StructureDataInterface
.structureDataInterface
- the input interfacepublic static String getTypeFromChainId(StructureDataInterface structureDataInterface, int chainInd)
structureDataInterface
- the input StructureDataInterface
chainInd
- the index of the relevant chainString
describing the chainpublic static byte[] encodeByteArr(FloatCodecs inputCodec, float[] inputData, int param)
inputCodec
- the codec to be usedinputData
- the array to encode and prependparam
- the input parameter - an integer to be used in the encodingpublic static byte[] encodeByteArr(IntCodecs inputCodec, int[] inputData, int param)
inputCodec
- the codec to be usedinputData
- the array to encode and prependparam
- the input parameter - an integer to be used in the encodingpublic static byte[] encodeByteArr(CharCodecs inputCodec, char[] inputData, int param)
inputData
- the array to encode and prependinputCodec
- the codec to be usedparam
- the input parameter - an integer to be used in the encodingpublic static byte[] encodeByteArr(StringCodecs inputCodec, String[] inputData, int param)
inputData
- the array to encode and prependinputCodec
- the codec to be usedparam
- the input parameter - an integer to be used in the encodingpublic static void transferBioassembly(StructureDataInterface structureDataInterface, AdapterToStructureData adapterToStructureData)
StructureDataInterface
to an AdapterToStructureData
.structureDataInterface
- the input StructureDataInterface
adapterToStructureData
- the AdapterToStructureData
to pass the data toCopyright © 2015–2016 RCSB PDB. All rights reserved.