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
Commits
f8aefb82
Commit
f8aefb82
authored
1 year ago
by
Mate Balajti
Browse files
Options
Downloads
Patches
Plain Diff
refactor: update main.py with TSL support
parent
b23e7f3f
No related branches found
No related tags found
2 merge requests
!48
refactor: setup.py, CI
,
!47
feat: add support for reassigned Transcript Support Level
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.py
+1
-1
1 addition, 1 deletion
setup.py
tsg/main.py
+6
-7
6 additions, 7 deletions
tsg/main.py
with
7 additions
and
8 deletions
setup.py
+
1
−
1
View file @
f8aefb82
...
...
@@ -12,7 +12,7 @@ URL = ('https://git.scicore.unibas.ch/zavolan_group/'
setup
(
name
=
'
transcript-structure-generator
'
,
version
=
'
0.
1
.0
'
,
version
=
'
0.
2
.0
'
,
url
=
URL
,
license
=
'
MIT
'
,
author
=
'
Larissa Glass, Michael Zimmermann, Andri Fraenkl
'
,
...
...
This diff is collapsed.
Click to expand it.
tsg/main.py
+
6
−
7
View file @
f8aefb82
...
...
@@ -55,7 +55,7 @@ def filter_df(gtf_df: pd.DataFrame, transcripts: list) -> pd.DataFrame:
transcripts
=
[]
df_filter
=
gtf_df
[
(
gtf_df
[
"
feature
"
]
==
"
exon
"
)
&
(
gtf_df
[
"
free_text
"
].
str
.
contains
(
'
transcript_support_level
"
1
"
'
))
&
(
gtf_df
[
"
free_text
"
].
str
.
contains
(
'
transcript_support_level
"
1
'
))
]
if
len
(
transcripts
)
>
0
:
df_filter
=
df_filter
[
df_filter
[
"
free_text
"
].
str
.
contains
(
...
...
@@ -316,16 +316,15 @@ class TranscriptGenerator:
strands
=
transcript_df
[
"
strand
"
].
unique
()
if
len
(
transcript_df
)
==
0
:
LOG
.
warning
(
"
Transcript %s can
'
t be sampled.
\
Annotation is missing
"
,
transcript_id
"
Transcript %s can
'
t be sampled.
"
"
Annotation is missing
or TSL is not 1.
"
,
transcript_id
)
instance
=
None
elif
len
(
strands
)
>
1
:
LOG
.
warning
(
"
Transcript %s can
'
t be sampled. Transcript generator
\
is not implemented for transcripts with
\
exons annotated on different strands
"
,
transcript_id
,
"
Transcript %s can
'
t be sampled. Transcript generator is
"
"
not implemented for transcripts with exons annotated on
"
"
different strands
"
,
transcript_id
,
)
instance
=
None
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment