Reading Data¶
-
class
pygna.reading_class.
ReadingData
[source]¶ Abstract class used to read different types of file. You can implement your own reading method, but remember that each subclass must implement the readfile and get_data methods
-
class
pygna.reading_class.
ReadTsv
(filename: str, pd_table: bool = False, int_type: int = None)[source]¶ This class is used to read and parse a network file in a tab-separated format (tsv).
-
class
pygna.reading_class.
ReadGmt
(filename: str, read_descriptor: bool = False)[source]¶ This class is used to read a gmt file, which contains information about the genes with a setname and separated by a comma
-
class
pygna.reading_class.
ReadCsv
(filename: str, sep: str = ', ', use_cols: list = None, column_to_fill: str = None)[source]¶ This class is used to read a csv file.
-
class
pygna.reading_class.
ReadTxt
(filename: str)[source]¶ This class reads a txt file containing a single gene per line