On 12/17/2015 06:51 PM, Rolf Huehne wrote:
> Thank you for the hint, Bob.
> I have thought about using JSON format but couldn't find a way to read
> it in again in the documentation.
> And besides I had a lot of trouble with the JSON format in another
> project (Javascript->JSON->Perl-CGI->Filesystem->Perl-CGI->Javascript).
> So I didn't try to dig deeper into it here.
>
> In Java the import of the small dataset in JSON format does work fine.
> The import of the full dataset is still running since several minutes.
> So it is much slower there than building the data structure from the TSV
> files.
>
Importing the full dataset is finished now. It took about 18 hours!

I tried to compare it to the original data by exporting it also with 
'write var ...'. But since it is sorted differently the comparison will 
be difficult.
What I know already is that the original export has 321 more lines and 
at least a few records are missing.

The missing records are already missing in the JSON file. Since they 
look rather strange and shouldn't be there in the first place, they 
might be a (quite strange) artifact of the 'write var ...' command.

----- Missing record example ---------------------
parsedData = {
   "edgeInfo"  :
   {
     "ageingFactorId||0%%alleleType||0"  :
     {
       "edgeNumber"  :  1
       "nodeKey1"  :  "ageingFactorId||0"
       "nodeKey2"  :  "alleleType||0"
       "nodeNumber1"  :  1
       "nodeNumber2"  :  2
       "nodeSubTypeId1"  :  "AF_UNK"
       "nodeSubTypeId2"  :  "ALT_ALT"
       "nodeTypeId1"  :  "F"
       "nodeTypeId2"  :  "Al"
       "subnetworkNumber"  :  1
      }
------------------------------------------------

Strange with the example record above are the zeros behind the '||' 
separators which shouldn't occur. But on the other hand there are hash 
keys that have a valid value (e.g.: nodeNumber1, nodeNumber2).

If I try to print the record the output is empty:

print parsedData..edgeInfo.["ageingFactorId||0%%alleleType||0"]

Printing the whole 'parsedData' variable crashed the Java plugin. So I 
couldn't compare it with the 'write' output.

Regards,
Rolf

-- 

Rolf Huehne
Postdoc

Leibniz Institute on Aging - Fritz Lipmann Institute (FLI)
Beutenbergstrasse 11
07745 Jena, Germany

Phone:   +49 3641 65 6205
Fax:     +49 3641 65 6210
E-Mail:  rhue...@leibniz-fli.de
Website: http://www.leibniz-fli.de

           Scientific Director: Prof. Dr. K. Lenhard Rudolph
        Head of Administration: Dr. Daniele Barthel
Chairman of Board of Trustees: Burkhard Zinner

VAT No: DE 153 925 464
Register of Associations: No. 230296, Amtsgericht Jena
Tax Number: 162/141/08228


------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to