diff --git a/tsg/main.py b/tsg/main.py index b4e9f075e9f955c66d3fd7a7409757c7bd3ebc0a..9faa9e61d47f537e2bbfa0e43681d2c2bb6ba901 100644 --- a/tsg/main.py +++ b/tsg/main.py @@ -216,9 +216,11 @@ class Gtf: self.df = pd.concat([filter_df(chunk) for chunk in reader]) def from_dataframe(self, df: pd.DataFrame) -> None: - """ Checks which columns belong to the free-text part of the GTF-file. - - Checks if there are no columns called free-text and if so, sets the value of self.parsed to TRUE. + """ Initializes Gtf object from pandas Dataframe. + Part of initialization is: + Set dataframe attribute + Check which columns belong to the free-text part of the GTF-file. + Check if there are no columns called free-text and if so, sets the value of parsed attribute to TRUE. Args: df: DataFrame