Re: atomcache with a file

Andreas Prlic <[email protected]>
Newsgroups gmane.comp.java.bio.general
Message-ID <CALthepxgn5EQOemyuHcdwLrbM1Tryyn5xX4htjmX1yC1VFJ3JA@mail.gmail.com>
Hi Jay,

you can use it like this:

		// by default PDB files will be stored in a temporary directory
		// there are two ways of configuring a directory, that can get
re-used multiple times:
		// A) set the environment variable PDB_DIR
		// B) call cache.setPath(path)
		AtomCache cache = new AtomCache();

		try {
			// alternative: try d4hhba_ 4hhb.A 4hhb.A:1-100
			Structure s = cache.getStructure("4hhb");
			System.out.println(s);
		}  catch (Exception e) {

			e.printStackTrace();
		
		}

Hope that helps,

Andreas



On Thu, Sep 15, 2011 at 8:32 PM, Jay Vyas <[email protected]> wrote:
> Hi guys : Anyone want to share a code snippet to use AtomCache to load a PDB
> File from disk ?
>
> --
> Jay Vyas
> MMSB/UCHC
> _______________________________________________
> Biojava-l mailing list  -  [email protected]
> http://lists.open-bio.org/mailman/listinfo/biojava-l
>

_______________________________________________
Biojava-l mailing list  -  [email protected]
http://lists.open-bio.org/mailman/listinfo/biojava-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.