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
Commits
0e81da69
Commit
0e81da69
authored
Nov 1, 2022
by
Samuel Mondal
Browse files
Options
Downloads
Patches
Plain Diff
Rudimentary code for exon concatenation plus a line for polyA generation
parent
a95db809
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
codes/exon_concatenation.py
+19
-0
19 additions, 0 deletions
codes/exon_concatenation.py
with
19 additions
and
0 deletions
codes/exon_concatenation.py
0 → 100644
+
19
−
0
View file @
0e81da69
fa
=
open
(
"
fasta.fa
"
,
'
r
'
)
lines
=
fa
.
readlines
()
for
x
in
range
(
int
(
len
(
lines
)
/
2
)):
if
x
==
0
:
annotation
=
lines
[
0
]
read
=
lines
[
1
]
if
x
>=
1
:
if
lines
[
2
*
x
]
==
lines
[
2
*
(
x
-
1
)]:
read
+=
lines
[(
2
*
x
)
+
1
]
else
:
annotation
=
lines
[
2
*
x
]
read
=
lines
[(
2
*
x
)
+
1
]
# Function for random addition of polyA to sequences
import
numpy
as
np
listA
=
[
'
A
'
,
'
U
'
,
'
G
'
,
'
C
'
]
''
.
join
(
np
.
random
.
choice
(
listA
,
250
,
p
=
[
0.9
,
0.040
,
0.020
,
0.020
]))
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