Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integration
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
gad-public
integration
Commits
3223df45
Commit
3223df45
authored
Dec 06, 2022
by
Marine Bergot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
a4069159
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
get_genes_list.py
scripts_CNV/get_genes_list.py
+23
-0
No files found.
scripts_CNV/get_genes_list.py
0 → 100644
View file @
3223df45
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
import
sys
genes_list
=
set
()
with
open
(
sys
.
argv
[
1
])
as
bed_file
:
for
line
in
bed_file
:
name
=
line
.
strip
()
.
split
(
";"
)
if
len
(
name
)
<
6
:
pass
else
:
name
=
line
.
strip
()
.
split
(
";"
)[
5
]
.
split
()[
1
]
if
"havana"
not
in
name
and
"ensembl"
not
in
name
and
"protein_coding"
not
in
name
:
genes_list
.
add
(
name
)
with
open
(
sys
.
argv
[
2
],
"w"
)
as
out_file
:
for
i
in
genes_list
:
out_file
.
write
(
i
)
out_file
.
write
(
"
\n
"
)
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