def test_profiles(self): """ Test the profiles method """ data = { "profiles.csv": [{"PROJECTID": "ENCODE", "project_id": "ENCODE", "ANNOTATION": "", "GENOMESEQ": ""}], "annotations.csv": [{"file_location": ""}], "genomes.csv": [], "accessions.csv": [ { "project_id": "ENCODE", "accession_id": "ABCD", "species": "H**o sapiens", "cell": "cell", "readType": "readType", "type": "type", "qualities": "qualities", "dataType": "dataType", "rnaExtract": "rnaExtract", "localization": "localization", "lab": "lab", } ], } profiles.main(data)
def test_profiles(self): """ Test the profiles method """ data = { 'profiles.csv': [{ 'PROJECTID': 'ENCODE', 'project_id': 'ENCODE', 'ANNOTATION': '', 'GENOMESEQ': '' }], 'annotations.csv': [{ 'file_location': '' }], 'genomes.csv': [], 'accessions.csv': [{ 'project_id': 'ENCODE', 'accession_id': 'ABCD', 'species': 'H**o sapiens', 'cell': 'cell', 'readType': 'readType', 'type': 'type', 'qualities': 'qualities', 'dataType': 'dataType', 'rnaExtract': 'rnaExtract', 'localization': 'localization', 'lab': 'lab' }] } profiles.main(data)
def install(self): workspace = self.buildout['extract']['workspace'] staging = self.options['staging'] if not os.path.exists(staging): os.makedirs(staging) data = {} for source in [f for f in glob.glob(os.path.join(workspace, '*.csv'))]: file_name = os.path.split(source)[-1] target = os.path.join(staging, file_name) shutil.copyfile(source, target) data[file_name] = read_csv(target) accessions.main(data, staging) annotations.main(data, staging) files.main(data, staging) genomes.main(data, staging) profiles.main(data) experiments.main(data, staging) read_length.main(data, staging) view.main(data, staging)