Search in sources :

Example 11 with PolymersJsonLoader

use of io.loaders.json.PolymersJsonLoader in project Smiles2Monomers by yoann-dufresne.

the class TreeWidthTests method setUp.

@Before
public void setUp() throws Exception {
    String pepDBname = "data_tests/peps.json";
    // Loading databases
    MonomersDB monoDB = new MonomersDB();
    PolymersJsonLoader pcl = new PolymersJsonLoader(monoDB);
    this.pepDB = pcl.loadFile(pepDBname);
}
Also used : MonomersDB(db.MonomersDB) PolymersJsonLoader(io.loaders.json.PolymersJsonLoader) Before(org.junit.Before)

Aggregations

PolymersJsonLoader (io.loaders.json.PolymersJsonLoader)11 MonomersDB (db.MonomersDB)10 PolymersDB (db.PolymersDB)9 MonomersJsonLoader (io.loaders.json.MonomersJsonLoader)6 RulesDB (db.RulesDB)5 Polymer (model.Polymer)5 FamilyDB (db.FamilyDB)4 ResidueJsonLoader (io.loaders.json.ResidueJsonLoader)4 File (java.io.File)4 MonomersSerialization (io.loaders.serialization.MonomersSerialization)3 Before (org.junit.Before)3 InvalidSmilesException (org.openscience.cdk.exception.InvalidSmilesException)3 MonomericSpliting (algorithms.MonomericSpliting)2 ResidueCreator (algorithms.ResidueCreator)2 ChainLearning (algorithms.isomorphism.chains.ChainLearning)2 ChainsDB (algorithms.isomorphism.chains.ChainsDB)2 Coverage (algorithms.utils.Coverage)2 Coverages2HTML (io.html.Coverages2HTML)2 ImagesGeneration (io.imgs.ImagesGeneration)2 ColorsMap (io.imgs.PictureCoverageGenerator.ColorsMap)2