-
Notifications
You must be signed in to change notification settings - Fork 38
SRA conversions
David Johnson edited this page Feb 26, 2016
·
1 revision
To convert from a directory ./tabdir/
containing valid ISA tab files to a write the SRA XML files to a target directory ./outdir/
, validating against a given configuration in ./isaconfig-default_v2015-07-02/
:
from isatools.convert import isatab2sra
isatab2sra.create_sra('./tabdir/', './outdir/', './isaconfig-default_v2015-07-02/')
To convert from a a ISA JSON file isa.json
directory to write out SRA XML files to a target directory ./outdir/
, validating against a given configuration in ./isaconfig-default_v2015-07-02/
:
from isatools.convert import json2sra
json2sra.convert(open('isa.json')), './outdir/', './isaconfig-default_v2015-07-02/')
from isatools.convert import sra2isatab
sra2isatab.sra_to_isatab_batch_convert(...)