From cba0b659dbf9aed6e4cae58b511aa76e473357a0 Mon Sep 17 00:00:00 2001
From: Hanna  JULIENNE <hanna.julienne@pasteur.fr>
Date: Tue, 14 Nov 2023 17:59:00 +0100
Subject: [PATCH] Revert "hdf5 add attributes"

This reverts commit 36d25d6ccd4cfaf6d8fa8cf0137fb755d7e40fb1
---
 jass/hdf5_add_attributes.py | 32 --------------------------------
 1 file changed, 32 deletions(-)
 delete mode 100644 jass/hdf5_add_attributes.py

diff --git a/jass/hdf5_add_attributes.py b/jass/hdf5_add_attributes.py
deleted file mode 100644
index a43ef17a..00000000
--- a/jass/hdf5_add_attributes.py
+++ /dev/null
@@ -1,32 +0,0 @@
-import h5py
-# we need python package h5py to read/write .hdf5 file
-
-
-def add_title_description(title, description, filename):
-    f = h5py.File(filename, "a")
-    f.attrs['title'] = title
-    f.attrs['description'] = description
-    f.close()
-
-
-if __name__ == "__main__":
-
-    title = 'Curated GWAS summary statistics on African ancestry on 19 blood count traits and glycemic traits (hg38)'
-    des = 'Genome wide curated summary statistics on 19 blood count traits and glycemic traits' \
-          'File format is the inittable format intended to be used with the Joint Analysis of Summary Statistics (JASS), which allows to perform multi-trait GWAS:' \
-          'https://gitlab.pasteur.fr/statistical-genetics/jass' \
-          'GWAS of hematological traits originate from Chen et al paper and were downloaded from the GWAS Catalog (https://www.ebi.ac.uk/gwas/publications/32888493#study_panel). GWAS of glycemic traits come from the (18) study downloadable from GWAS Catalog (https://www.ebi.ac.uk/gwas/publications/34059833).'
-    hdf5_file = 'test.hdf5'
-
-    add_title_description(title=title, description=des, filename=hdf5_file)
-
-    f = h5py.File(hdf5_file, "r")
-    print(f.attrs['title'])
-    print(f.attrs['description'])
-    f.close()
-
-
-
-
-
-
-- 
GitLab