Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scRNA-seq-simulation
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
pipelines
scRNA-seq-simulation
Commits
b2f1355c
Commit
b2f1355c
authored
3 years ago
by
U-STI\morika
Browse files
Options
Downloads
Patches
Plain Diff
fixed ranges to correct # of reads
parent
fec9404e
No related branches found
No related tags found
1 merge request
!17
Issue 7
Pipeline
#13676
failed
3 years ago
Stage: qc
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/read_sequencing.py
+5
-2
5 additions, 2 deletions
src/read_sequencing.py
with
5 additions
and
2 deletions
src/read_sequencing.py
+
5
−
2
View file @
b2f1355c
...
...
@@ -40,7 +40,10 @@ def read_sequencing(frag_file_name, output_file_name, num_reads, read_len, num_s
while
frag_line
!=
""
:
# To stop when the end of file is reached
if
frag_line
.
startswith
(
'
>
'
):
# Determine if this is the first fragment in the file
# Ignore the description line (starting with >) of the first fragment
if
not
(
len
(
frag_list
)
==
0
and
frag_str
==
""
):
# Not the first fragment. Append to list.
frag_list
.
append
(
frag_str
)
frag_str
=
""
else
:
...
...
@@ -60,7 +63,7 @@ def read_sequencing(frag_file_name, output_file_name, num_reads, read_len, num_s
sum_frags
=
sum
(
map
(
len
,
frag_list
))
# Repeat the read process for given number of cycles
for
j
in
range
(
1
,
num_seq_cyc
):
for
j
in
range
(
0
,
num_seq_cyc
):
# Loop through fasta fragments that start with 5'
for
frag
in
frag_list
:
...
...
@@ -70,7 +73,7 @@ def read_sequencing(frag_file_name, output_file_name, num_reads, read_len, num_s
# TODO resolve this issue
num_frag_reads
=
round
((
len
(
frag
)
/
sum_frags
)
*
num_reads
)
for
i
in
range
(
1
,
num_frag_reads
):
for
i
in
range
(
0
,
num_frag_reads
):
# Obtain random first position for the read on the fragment
rand_start
=
randrange
(
0
,
len
(
frag
))
...
...
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