Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
Upsampling
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anne-Sophie Denommé-Pichon
Upsampling
Commits
cfab26ee
Commit
cfab26ee
authored
Sep 24, 2021
by
Anne-Sophie Denommé-Pichon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'old'
Conflicts: fastq_upsampling.py
parents
9514e3ce
154ba461
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fastq_upsampling.py
fastq_upsampling.py
+5
-5
No files found.
fastq_upsampling.py
View file @
cfab26ee
...
...
@@ -25,19 +25,19 @@ def upsample(upsampling_read_count, read_id):
print
(
plus_line
)
print
(
quality_line
)
lane
=
int
(
title_line
.
split
(
':'
)[
2
])
lane
=
int
(
title_line
.
split
(
':'
)[
-
4
])
if
lane
>
max_lane
:
max_lane
=
lane
tile
=
int
(
title_line
.
split
(
':'
)[
3
])
tile
=
int
(
title_line
.
split
(
':'
)[
-
3
])
if
tile
>
max_tile
:
max_tile
=
tile
x
=
int
(
title_line
.
split
(
':'
)[
4
])
x
=
int
(
title_line
.
split
(
':'
)[
-
2
])
if
x
>
max_x
:
max_x
=
x
y
=
str
(
title_line
.
split
(
':'
)[
5
])
y
=
str
(
title_line
.
split
(
':'
)[
-
1
])
if
title_line
==
read_id
:
title_line_str
=
title_line
...
...
@@ -60,4 +60,4 @@ if __name__ == '__main__':
else
:
print
(
"Usage: fastq_upsampling.py <upsampling_read_count> <read_id> < input.fastq > output.fastq"
,
file
=
sys
.
stderr
)
sys
.
exit
(
1
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment