Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Transcript sequence extractor
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zavolan_group
tools
Transcript sequence extractor
Merge requests
!25
Class
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Class
class
into
master
Overview
0
Commits
4
Pipelines
0
Changes
2
Merged
Class
Gina Boot
requested to merge
class
into
master
Nov 15, 2022
Overview
0
Commits
4
Pipelines
0
Changes
2
0
0
Merge request reports
Compare
master
version 1
d09c2d25
Nov 15, 2022
master (base)
and
latest version
latest version
10c1f29f
4 commits,
Nov 15, 2022
version 1
d09c2d25
2 commits,
Nov 15, 2022
2 files
+
47
−
34
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
sequence_extractor/polyA.py deleted
100644 → 0
+
0
−
16
View file @ f35b4d0a
import
numpy
as
np
# To do: Taking probabilities of nucleotides from user and raising error if sum != 1
def
PolyA_generator
(
exon
:
str
,
)
->
str
:
"""
Adds a PolyA tail to an exon sequence input into the function.
Args:
exon: RNA sequence, obtained from concatenation of exons, that needs polyA to be added to its 3
'
end.
Returns:
RNA with polyA tail added to its 3
'
end.
"""
listA
=
[
'
A
'
,
'
T
'
,
'
G
'
,
'
C
'
]
polyA
=
''
.
join
(
np
.
random
.
choice
(
listA
,
250
,
p
=
[
0.9
,
0.040
,
0.020
,
0.020
]))
return
(
exon
+
polyA
)
Loading