Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Transcript structure generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zavolan_group
tools
Transcript structure generator
Merge requests
!15
Added more Doc Strings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added more Doc Strings
Michis_Doc_Strings
into
main
Overview
1
Commits
3
Pipelines
0
Changes
1
Merged
Michael Zimmermann
requested to merge
Michis_Doc_Strings
into
main
2 years ago
Overview
1
Commits
3
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
version 1
version 2
8f5b7f0f
2 years ago
version 1
7d783c7c
2 years ago
main (base)
and
latest version
latest version
a2867f21
3 commits,
2 years ago
version 2
8f5b7f0f
2 commits,
2 years ago
version 1
7d783c7c
1 commit,
2 years ago
Show latest version
1 file
+
7
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
tsg/main.py
+
7
−
5
Options
@@ -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