Skip to content
Snippets Groups Projects

Added more Doc Strings

Merged Michael Zimmermann requested to merge Michis_Doc_Strings into main
+ 7
5
@@ -215,10 +215,12 @@ class Gtf:
)
self.df = pd.concat([filter_df(chunk) for chunk in reader])
def from_dataframe(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.
def from_dataframe(self, df: pd.DataFrame) -> None:
""" 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
@@ -316,7 +318,7 @@ class TranscriptGenerator:
return inclusion_arr
def _get_unique_inclusions(self) -> (list, np.array, np.array):
def _get_unique_inclusions(self) -> tuple(list, np.array, np.array):
"""Inclusion of unique intron inclusion via arrays and counts and name generation of each unique count.
Args:
Loading